Duration.ToRecord(duration as duration) as record
Returns a record containing the parts the duration value,
durationfrom which the record is created.
#duration(2, 5, 55, 20) into a record of its parts including days, hours, minutes, and seconds if applicable.
Duration.ToRecord(#duration(2, 5, 55, 20))
[ Days = 2, Hours = 5, Minutes = 55, Seconds = 20 ]