Skip to contents

return rounded seconds from time

Usage

obs_roundtime(x, n = 10)

Arguments

x

time as "POSIXct" "POSIXt"

n

factor

Value

numeric vector

Examples

if (FALSE) { # \dontrun{
# Do not run
x <- Sys.time() + seq(1, 55, 1)
paste0(x,"  ",
       obs_roundtime(x), "  ",
       obs_freq(data.table::second(x),
                seq(0, 55, 10)))
} # }