List.Durations
List.Durations(start as duration, count as number, step as duration) as list
返回一个值列表count
duration
,从start
给定duration
step
值开始和递增。
创建包含 5 个值的列表,从 1 小时开始,并按 1 个小时递增。
使用情况
List.Durations(#duration(0, 1, 0, 0), 5, #duration(0, 1, 0, 0))
输出
{
#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)
}