public override toString(format as String = "%h h %m m %s s") as String:
Returns a string representation of this Duration.
Supported placeholders: %h for hours, %m for minutes and %s for seconds.
| Parameter | Description |
|---|---|
format | The format string for the output. |
A string representation of this Duration object.
import klyn.time duration = Duration(0, 0, 0, 3661) print(duration.toString()) # 1 h 1 m 1 s