convert_sec_to_hms | R Documentation |
Internal soundgen function.
convert_sec_to_hms(time_s, digits = 0)
time_s |
time (s) |
digits |
number of digits to preserve for s (1-60 s) |
Converts time in seconds to time in y m d h min s for pretty printing.
Returns a character string like "1 h 20 min 3 s"
time_s = c(.0001, .01, .33, .8, 2.135, 5.4, 12, 250, 3721, 10000,
150000, 365 * 24 * 3600 + 35 * 24 * 3600 + 3721)
soundgen:::convert_sec_to_hms(time_s)
soundgen:::convert_sec_to_hms(time_s, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.