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
ParameterDescription
daysThe number of days in the duration.
hoursThe number of hours in the duration.
minutesThe number of minutes in the duration.
secondsThe number of seconds in the duration.
usecondsThe number of microseconds in the duration.
Example
import klyn.time

duration = Duration(1, 2, 30, 45, 500000)