powered by
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)
character string with formatted duration
numeric duration in seconds
if (FALSE) { format_duration(3661) # "01h 01m 01s" format_duration(86461) # "1d 00h 01m 01s" }
Run the code above in your browser using DataLab