dot-formatDuration: Format a duration in seconds as a compact human-readable...

.formatDurationR Documentation

Format a duration in seconds as a compact human-readable string

Description

Internal helper for download progress reporting: 90 -> "1m30s", 3725 -> "1h02m05s", 5 -> "5s". A non-finite or negative input (e.g. an ETA before there is any signal) returns "--".

Usage

.formatDuration(secs)

Arguments

secs

Numeric, seconds.

Value

A length-one character string.


reproducible documentation built on Aug. 26, 2026, 1:07 a.m.