public Duration(days as Int = 0, hours as Int = 0, minutes as Int = 0, seconds as Double = 0.0, useconds as Int = 0):
Constructs a Duration object from individual time components.
| Parameter | Description |
|---|---|
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. |
import klyn.time duration = Duration(1, 2, 30, 45, 500000)