inst/tinytest/test_gh_issue_12.R

library(anytime)

anydate("1969-01-01")    # crashed on Windows before tm_isdst diable for pre-epoch dates
anydate("1971-02-03")    # fine anywhere

## test for equivalent instead of equal because of TZ attribute returned by anydate
expect_equivalent(anydate("1969-01-01"), as.Date("1969-01-01"))
expect_equivalent(anydate("1971-02-03"), as.Date("1971-02-03"))

Try the anytime package in your browser

Any scripts or data that you put into this service are public.

anytime documentation built on Aug. 28, 2020, 1:12 a.m.