Duration Functions

Duration.FromText

Syntax Duration.FromText(text as nullable text) as nullable duration Description Returns a duration value from the …

Duration.TotalMinutes

Syntax Duration.TotalMinutes(duration as nullable duration) as nullable number Description Returns the total minutes spanned by …

Duration.Hours

Syntax Duration.Hours(duration as nullable duration) as nullable number Description Returns the hour component of the …

Duration.Seconds

Syntax Duration.Seconds(duration as nullable duration) as nullable number Description Returns the seconds component of the …

Duration.Minutes

Syntax Duration.Minutes(duration as nullable duration) as nullable number Description Returns the minutes component of the …

Duration.ToRecord

Syntax Duration.ToRecord(duration as duration) as record Description Returns a record containing the parts the duration …

Duration.Days

Syntax Duration.Days(duration as nullable duration) as nullable number Description Returns the day component of the …

Duration.ToText

Syntax Duration.ToText(duration as nullable duration, optional format as nullable text) as nullable text Description Returns …

Duration.TotalDays

Syntax Duration.TotalDays(duration as nullable duration) as nullable number Description Returns the total days spanned by …

#duration

Syntax #duration(days as number, hours as number, minutes as number, seconds as number) as duration …

Duration.TotalHours

Syntax Duration.TotalHours(duration as nullable duration) as nullable number Description Returns the total hours spanned by …

Duration.From

Syntax Duration.From(value as any) as nullable duration Description Returns a duration value from the given …

Duration.TotalSeconds

Syntax Duration.TotalSeconds(duration as nullable duration) as nullable number Description Returns the total seconds spanned by …