Duration.FromDays
Creates a Duration from days.
Syntax
Duration.FromDays(value: any) -> any
Parameters
| Parameter | Type | Description |
|---|---|---|
value | any | The value to apply. |
Returns
| Type | Description |
|---|---|
any | The value produced by the call. |
Description
Duration.FromDays is part of the Timer library. Timer, Stopwatch and Duration objects driven by the VM scheduler.
The operation is performed immediately using the arguments supplied at the call site.
Example
local duration = Duration.FromDays(1)
print(duration.Hours)
Notes
- Timer callbacks run on the executor scheduler; disable or destroy timers when they are finished.