Duration functions

These functions create and manipulate duration values.

Name Description
Duration.Days Returns the days portion of a duration.
Duration.From Creates a duration from the given value.
Duration.FromText Returns a duration value from a text value.
Duration.Hours Returns the hours portion of a duration.
Duration.Minutes Returns the minutes portion of a duration.
Duration.Seconds Returns the seconds portion of a duration.
Duration.ToRecord Returns a record containing the parts of the duration.
Duration.TotalDays Returns the total days this duration spans.
Duration.TotalHours Returns the total hours this duration spans.
Duration.TotalMinutes Returns the total minutes this duration spans.
Duration.TotalSeconds Returns the total seconds this duration spans.
Duration.ToText Returns the text of the form "d.h:m:s".
#duration Creates a duration value from days, hours, minutes, and seconds.