List.Durations
给定初始值、计数和增量 duration 值来生成 duration 值的列表。
Syntax
List.Durations(
start as duration,
count as number,
step as duration
) as list
Remarks
返回 count duration 值的列表,从 start 开始,以给定的 duration step 为增量。
Examples
Example #1
创建 5 个值的列表,从 1 小时开始,以 1 小时为增量。
List.Durations(#duration(0, 1, 0, 0), 5, #duration(0, 1, 0, 0))
Result:
{
#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)
}
Category
List.Generators