klyn.time.Duration.Duration
constructor

    public Duration(days as Int = 0, hours as Int = 0, minutes as Int = 0, seconds as Double = 0.0, useconds as Int = 0):

Description

Constructs a Duration object from individual time components.

Parameters

- days The number of days in the duration.
- hours The number of hours in the duration.
- minutes The number of minutes in the duration.
- seconds The number of seconds in the duration.
- useconds The number of microseconds in the duration. ```klyn import klyn.time duration = Duration(1, 2, 30, 45, 500000) ```