Duration.ToRecord
Syntax
Duration.ToRecord(duration as duration) as record
About
Returns a record containing the parts the duration value, duration
.
duration
: Aduration
from which the record is created.
Example 1
Convert #duration(2, 5, 55, 20)
into a record of its parts including days, hours, minutes, and seconds if applicable.
Usage
Duration.ToRecord(#duration(2, 5, 55, 20))
Output
[
Days = 2,
Hours = 5,
Minutes = 55,
Seconds = 20
]
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for