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

Comments

Projects
None yet
2 participants
@Henrik-P

Henrik-P commented Aug 23, 2014

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 from parse_date_time on dates with weekday fails with weekday in order to parse_date_time on dates with weekdays fails when weekday (a / A) is specified in order Aug 24, 2014

@vspinu vspinu added the bug label Dec 14, 2014

@vspinu vspinu closed this in 00b07d0 Apr 27, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment