UDurationExtension extension
Readable durations. 90.seconds.toClock() → "01:30"
- on
Methods
-
delay(
) → Future< void> -
Available on Duration, provided by the UDurationExtension extension
Waits this long.await 2.seconds.delay() -
toClock(
) → String -
Available on Duration, provided by the UDurationExtension extension
"HH:MM:SS", or "MM:SS" under an hour. 90 s → "01:30" -
toHuman(
{bool persian = false}) → String -
Available on Duration, provided by the UDurationExtension extension
Largest two units in words. 3725 s → "1h 2m", persian → "۱ ساعت و ۲ دقیقه"