| format_duration | R Documentation |
Converts a duration in seconds to a formatted string with days, hours, minutes, and seconds. Used for ETA calculations and progress reporting.
format_duration(seconds)
seconds |
numeric duration in seconds |
character string with formatted duration
## Not run:
format_duration(3661) # "01h 01m 01s"
format_duration(86461) # "1d 00h 01m 01s"
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.