-
Notifications
You must be signed in to change notification settings - Fork 214
Closed
Description
ymd("2004-Jan-15") # last two digits of year seem to become month
# and first two digits of year seem to become last two of year
## [1] "2020-04-15 UTC"
ymd("1904-Jan-15")
## [1] "2019-04-15 UTC"
parse_date_time("1904-Jan-15", "ybd") # good
## [1] "1904-01-15 UTC"
ymd("1904-Feb-15") # also good
## [1] "1904-02-15 UTC"
ymd('1920-Jan-01') # also good (note "20" would not be a valid month)
## [1] "1920-01-01 UTC"
ymd("2004-01-01") # also good
## [1] "2004-01-01 UTC"
sessionInfo()
## R Under development (unstable) (2013-12-21 r64500)
## Platform: x86_64-w64-mingw32/x64 (64-bit)
##
## locale:
## [1] LC_COLLATE=English_United States.1252
## [2] LC_CTYPE=English_United States.1252
## [3] LC_MONETARY=English_United States.1252
## [4] LC_NUMERIC=C
## [5] LC_TIME=English_United States.1252
##
## attached base packages:
## [1] stats graphics grDevices utils datasets methods base
##
## other attached packages:
## [1] lubridate_1.3.3
##
## loaded via a namespace (and not attached):
## [1] digest_0.6.4 memoise_0.1 plyr_1.8 stringr_0.6.2Metadata
Metadata
Assignees
Labels
No labels