pretty_dt | R Documentation |
Pretty formatting of time intervals (difftime objects)
pretty_dt(dt, compact = FALSE)
dt |
A |
compact |
If true, then only the first non-zero unit is used. See examples below. |
Character vector of formatted time intervals.
Other time:
pretty_ms()
,
pretty_sec()
pretty_dt(as.difftime(1000, units = "secs"))
pretty_dt(as.difftime(0, units = "secs"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.