vspinu / timechange

Efficient Updating of Date-Times
GNU General Public License v3.0
30 stars 3 forks source link

Return infinite date-time on Inf addition #29

Open vspinu opened 1 year ago

vspinu commented 1 year ago
> timechange::time_add(ymd("2023-01-01"),  days=Inf)
[1] NA
> timechange::time_add(ymd("2023-01-01"),  seconds=Inf)
[1] NA
> as.Date("2023-01-01") + Inf
[1] "Inf"
> as.POSIXct("2023-01-01") + Inf
[1] "Inf"