Extract time-of-day values

hms(x)

Arguments

x

a POSIXct, POSIXlt, Date, chron, yearmon, yearqtr, zoo, zooreg, timeDate, xts, its, ti, jul, timeSeries, or fts object.

Value

hms object

Examples

hms("2017-10-22 15:01:00")
#> [1] "15H 1M 0S"