Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upparse_date_time with format %B does not match abbreviated month names #529
Comments
|
Yeh. Something is not quite right with the C parser: > dt <- c("04jan2016:07:40:00", "04JAN2016:07:40:00", "04Jan2016:07:40:00")
> parse_date_time2(dt, "dBYHMS")
[1] NA "2016-07-04 07:40:00 UTC" "2016-01-04 07:40:00 UTC"
> parse_date_time2(dt, "dbYHMS")
[1] NA "2016-07-04 07:40:00 UTC" "2016-01-04 07:40:00 UTC"
> parse_date_time(dt, "dBYHMS")
[1] NA NA "2016-01-04 07:40:00 UTC"
Warning message:
2 failed to parse.
> parse_date_time(dt, "dbYHMS")
[1] "2016-01-04 07:40:00 UTC" "2016-01-04 07:40:00 UTC" "2016-01-04 07:40:00 UTC"Will have a look. |
parse_date_timewith format%Bdoes not match abbreviated month names while%bworks as expected.If important, this is on a Windows 10 system:
As an addendum, you do better than strptime which doesn't parse either version: