Description Usage Arguments Value See Also Examples
Pretty formatting of time intervals (difftime objects)
1 |
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()
1 2 | pretty_dt(as.difftime(1000, units = "secs"))
pretty_dt(as.difftime(0, units = "secs"))
|
[1] "16m 40s"
[1] "0ms"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.