public toString(format as String) as String:
Returns a string representation using a custom duration format.
| Parameter | Description |
|---|---|
format | Format using %h, %m and %s placeholders. |
A formatted string representation of this duration.
import klyn.time
duration = Duration(0, 0, 0, 3661)
print(duration.toString("%h:%m:%s")) # 1:1:1