tidyverse / hms

A simple class for storing time-of-day values
https://hms.tidyverse.org/
Other
138 stars 25 forks source link

Need rounding functions #31

Closed hadley closed 7 years ago

hadley commented 7 years ago

e.g.

round_time <- function(x, sec) {
  hms::hms(as.numeric(x) %/% sec * sec)
}
krlmlr commented 7 years ago

Added round_hms() and trunc_hms().

github-actions[bot] commented 3 years ago

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.