gaborcsardi / parsedate

R package to parse dates given in arbitrary formats
65 stars 7 forks source link

Limitation description is not accurate. #37

Open G5W opened 2 years ago

G5W commented 2 years ago

The description of the limitations https://github.com/gaborcsardi/parsedate#limitations says:

The git parser does not work for dates before 1970 and after 2100. For these dates the current year is used instead.

That was true in the examples shown, but sometimes other years are used.

TestDates = c("3/27/1969", "03/27/1969") parse_date(TestDates) [1] "2027-01-03 UTC" "2027-01-03 UTC"

R.version
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 4
minor 1.3
year 2022
month 03
day 10
svn rev 81868
language R
version.string R version 4.1.3 (2022-03-10) nickname One Push-Up
packageVersion("parsedate") [1] ‘1.3.0’