sec2hms | R Documentation |
sec2hms
and min2hms
convert decimal numbers of seconds and
minutes to h:mm:ss format.
h may exceed 23 and is omitted if h = 0.
sec2hms(x, nearest = T)
min2hms(x, nearest = T)
x |
Decimal number to be converted. |
nearest |
Whether x should be rounded to the nearest second. Otherwise x is rounded down. Default is TRUE. |
A character scalar.
sec2hms(97448.7) # 27:04:09
min2hms(1624.145) # 27:04:09
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.