List.Durations

Syntax

List.Durations(start as duration, count as number, step as duration) as list

About

Returns a list of count duration values, starting at start and incremented by the given duration step.

Example 1

Create a list of 5 values starting 1 hour and incrementing by an hour.

Usage

List.Durations(#duration(0, 1, 0, 0), 5, #duration(0, 1, 0, 0))

Output

{
    #duration(0, 1, 0, 0),
    #duration(0, 2, 0, 0),
    #duration(0, 3, 0, 0),
    #duration(0, 4, 0, 0),
    #duration(0, 5, 0, 0)
}