ToDuration
Creates a duration value from a number and a unit.
Syntax
ToDuration length unit
Returns
duration value
Arguments
| Name | Required | Type | Description |
|---|---|---|---|
length | Yes | A number bigger or equal 0 | |
unit | Yes | DurationUnit enum value - found using 'serhelp DurationUnit' command |
Details
Used when a number is not known ahead of time.
Validated examples using this method
On a running server
Use serhelp ToDuration to inspect the reference generated by your installed SER version.