See #732 (comment).
Changing hour, minute or second of date now yields POSIXlt:
class(as_date(0) + hours(1))
#> "POSIXlt" "POSIXt"
POSIXct is the preferred class for datetimes, though (cf. as_datetime). Moreover, POSIXlt does not allow for infinity, leading to bugs like:
as.numeric(as_date(c(0, Inf)))
#> 0 Inf
as.numeric(as_date(c(0, Inf)) + hours(1))
#> 3600 NA
See #732 (comment).
Changing hour, minute or second of date now yields POSIXlt:
POSIXct is the preferred class for datetimes, though (cf.
as_datetime). Moreover, POSIXlt does not allow for infinity, leading to bugs like: