Pretty formatting of seconds
pretty_sec(sec, compact = FALSE)
Numeric vector of seconds.
If true, then only the first non-zero unit is used. See examples below.
Character vector of formatted time intervals.
Other time: pretty_dt; pretty_ms
pretty_dt
pretty_ms
# NOT RUN { pretty_sec(c(1337, 13370, 133700, 1337000, 13370000)) pretty_sec(c(1337, 13370, 133700, 1337000, 13370000), compact = TRUE) # }
Run the code above in your browser using DataLab