Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Deprecated

Deprecated functions


Description

is.hms() has been replaced by is_hms().

as.hms() has been replaced by as_hms(), which does not have a tz argument. Change the timezone before converting if necessary, e.g. using lubridate::with_tz().

Usage

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", ""), ...)

Arguments

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 x but was "UTC" for v0.3 and earlier. The previous behavior can be restored by calling pkgconfig::set_config("hms::default_tz", "UTC"), see pkgconfig::set_config().


hms

Pretty Time of Day

v1.0.0
MIT + file LICENSE
Authors
Kirill Müller [aut, cre], R Consortium [fnd], RStudio [fnd]
Initial release
2021-01-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.