R/internal.R

Defines functions as_hms

as_hms <- function(x) {
  x <- as.difftime(x, units = "secs")
  class(x) <- c("hms", "difftime")
  x
}

Try the hmstimer package in your browser

Any scripts or data that you put into this service are public.

hmstimer documentation built on Sept. 20, 2022, 9:11 a.m.