klyn.time.Duration.operator*
method

    public static operator*(first as Duration, factor as Double) as Duration:

Description

Multiplies a Duration by a numeric factor.

Parameters

Parameter | Description
--- | ---
`first` | Duration.
`factor` | Multiplication factor.

Returns

A new scaled Duration.

Example

    import klyn.time

    d = Duration(0, 0, 1)
    print((d * 2.0).totalSeconds)  # 120