psolymos / intrval

Relational Operators for Intervals
41 stars 4 forks source link

Is there an error on these dates? #3

Closed mgacc0 closed 7 years ago

mgacc0 commented 7 years ago

I'm not sure if there is an error or if it's intentional.

mgacc0 commented 7 years ago

Would you consider using the lubridate::ymd function because it warns appropriately?

    as.Date("2000-01-151")
    # [1] "2000-01-15"

    lubridate::ymd("2000-01-151")
    # [1] NA
    # Warning message:
    # All formats failed to parse. No formats found.
psolymos commented 7 years ago

No it wasn't intentional, it was just to late in the morning probably. Thx.