Deprecated {hms} | R Documentation |
is.hms()
has been replaced by is_hms()
.
as.hms()
has been replaced by as_hms()
, which is no longer generic and also
does not have a tz
argument.
It also uses the time zone of the argument for conversion,
not the current system's timezone.
Change the timezone before converting if necessary, e.g. using lubridate::with_tz()
.
is.hms(x) as.hms(x, ...) ## Default S3 method: as.hms(x, ...) ## S3 method for class 'POSIXt' as.hms(x, tz = pkgconfig::get_config("hms::default_tz", ""), ...) ## S3 method for class 'POSIXlt' as.hms(x, tz = pkgconfig::get_config("hms::default_tz", ""), ...)
x |
An object. |
... |
Arguments passed on to further methods. |
tz |
The time zone in which to interpret a POSIXt time for extracting
the time of day. The default is now the zone of |