Skip to main content

Duration.ToRecord

Returns a record containing the parts of the duration.

Syntax

Duration.ToRecord(
duration as duration
) as record

Remarks

Returns a record containing the parts the duration value, duration.

  • duration: A duration from which the record is created.

Examples

Example #1

Convert <code>#duration(2, 5, 55, 20)</code> into a record of its parts including days, hours, minutes and seconds if applicable.

Duration.ToRecord(#duration(2, 5, 55, 20))

Result:

[
Days = 2,
Hours = 5,
Minutes = 55,
Seconds = 20
]

Category

Duration