tidyverse / hms

A simple class for storing time-of-day values
https://hms.tidyverse.org/
Other
138 stars 25 forks source link

Can't add to Date #20

Closed krlmlr closed 8 years ago

krlmlr commented 8 years ago

https://github.com/rstats-db/hms/issues/18#issuecomment-224619267

as.Date("2016-03-31") + hms(minutes = 1)
#> Warning: Incompatible methods ("+.Date", "Ops.hms") for "+"
#> [1] "2016-05-30"
krlmlr commented 8 years ago

Works in 30f6dfa35be8ebc9f4.

edzer commented 8 years ago

I think this should return a POSIXct datetime object, unless hms mod 24h is zero.

github-actions[bot] commented 3 years ago

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.