Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse_date_time on dates with weekdays fails when weekday (a / A) is specified in order #254

Closed
Henrik-P opened this issue Aug 23, 2014 · 0 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@Henrik-P
Copy link

If dates contains a full or abbreviated weekday, parse_date_time fails if weekday (A or a) is specified in order. However, such dates are parsed correctly if weekday is not specified in order:

dat <- c("Saturday 31 August 2013", "Sun 12 Jan 2014")

parse_date_time(x = dat, orders = c("a d b y"), locale = "eng")
# [1] NA NA
# Warning message:
# All formats failed to parse. No formats found. 

parse_date_time(x = dat, orders = c("A d b y"), locale = "eng")
# [1] NA NA
# Warning message:
# All formats failed to parse. No formats found. 

parse_date_time(x = dat, orders = c("d b y"), locale = "eng")
# [1] "2013-08-31 UTC" "2014-01-12 UTC"

lubridate_1.3.3
@Henrik-P Henrik-P changed the title parse_date_time on dates with weekday fails with weekday in order parse_date_time on dates with weekdays fails when weekday (a / A) is specified in order Aug 24, 2014
@vspinu vspinu added the bug an unexpected problem or unintended behavior label Dec 14, 2014
@vspinu vspinu closed this as completed in 00b07d0 Apr 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants