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
The text was updated successfully, but these errors were encountered:
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
If dates contains a full or abbreviated weekday,
parse_date_time
fails if weekday (A
ora
) is specified inorder
. However, such dates are parsed correctly if weekday is not specified inorder
:The text was updated successfully, but these errors were encountered: