klyn.time.Duration.toString
method

    public toString(format as String) as String:

Description

Returns a string representation using a custom duration format.

Parameters

Parameter | Description
--- | ---
`format` | Format using `%h`, `%m` and `%s` placeholders.

Returns

A formatted string representation of this duration.

Example

    import klyn.time
    duration = Duration(0, 0, 0, 3661)
    print(duration.toString("%h:%m:%s"))  # 1:1:1