Skip to content

Inconsistent recognition of incorrect input, given locale, in ymd and mdy #255

Description

@HywelMJ

R version 3.1.0 lubridate 1.3.3.
Sys.getlocale(category = "LC_ALL")
[1] "LC_COLLATE=Welsh_United Kingdom.1252;LC_CTYPE=Welsh_United Kingdom.1252;LC_MONETARY=Welsh_United Kingdom.1252;LC_NUMERIC=C;LC_TIME=Welsh_United Kingdom.1252"

ymd("1989, Hydref 17")
[1] "1989-10-17 UTC"

but
ymd("1989, October 17")
[1] NA (which is good, given the locale)

while
mdy("Hydref 12, 1975")
[1] "1975-10-12 UTC"

and
mdy("October 12, 1975")
[1] "2075-12-19 UTC" (which is wrong).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions