Marc Kupietz | b1dec01 | 2025-06-04 17:16:57 +0200 | [diff] [blame^] | 1 | % Generated by roxygen2: do not edit by hand |
| 2 | % Please edit documentation in R/logging.R |
| 3 | \name{format_duration} |
| 4 | \alias{format_duration} |
| 5 | \title{Format duration in seconds to human-readable format} |
| 6 | \usage{ |
| 7 | format_duration(seconds) |
| 8 | } |
| 9 | \arguments{ |
| 10 | \item{seconds}{numeric duration in seconds} |
| 11 | } |
| 12 | \value{ |
| 13 | character string with formatted duration |
| 14 | } |
| 15 | \description{ |
| 16 | Converts a duration in seconds to a formatted string with days, hours, minutes, and seconds. |
| 17 | Used for ETA calculations and progress reporting. |
| 18 | } |
| 19 | \examples{ |
| 20 | \dontrun{ |
| 21 | format_duration(3661) # "01h 01m 01s" |
| 22 | format_duration(86461) # "1d 00h 01m 01s" |
| 23 | } |
| 24 | } |
| 25 | \keyword{internal} |