Skip to content

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

Description

@Henrik-P

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

Activity

  1. 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[/+] on Aug 24, 2014
  2. added
    bugan unexpected problem or unintended behavior
    on Dec 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions