format_duration {RKorAPClient} | R Documentation |
Format duration in seconds to human-readable format
Description
Converts a duration in seconds to a formatted string with days, hours, minutes, and seconds. Used for ETA calculations and progress reporting.
Usage
format_duration(seconds)
Arguments
seconds |
numeric duration in seconds |
Value
character string with formatted duration
Examples
## Not run:
format_duration(3661) # "01h 01m 01s"
format_duration(86461) # "1d 00h 01m 01s"
## End(Not run)
[Package RKorAPClient version 1.1.0 Index]