Skip to main content

ToDuration

Creates a duration value from a number and a unit.

Syntax​

ToDuration length unit

Returns​

duration value

Arguments​

NameRequiredTypeDescription
lengthYesA number bigger or equal 0
unitYesDurationUnit 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.