List.Times

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

返回大小为 counttime 值的列表,从 start 开始。给定的增量 step 是加到每个值的 duration 值。

示例:

从中午(#time(12, 0, 0))开始创建 4 个值的列表,以 1 小时为增量(#duration(0, 1, 0, 0))。

使用情况:

List.Times(#time(12, 0, 0), 4, #duration(0, 1, 0, 0))

输出:
{
    #time(12, 0, 0),
    #time(13, 0, 0),
    #time(14, 0, 0),
    #time(15, 0, 0)
}

results matching ""

    No results matching ""