List.Times
已知初始值、計數和累加持續時間值,產生 time 值的清單。
Syntax
List.Times(
start as time,
count as number,
step as duration
) as list
Remarks
傳回大小為 count 的 time 值清單,從 start 開始。指定的增量 step 是要加到每個值的 duration 值。
Examples
Example #1
建立 4 個值的清單,從中午 (#time(12, 0, 0)) 開始,逐次遞增 1 小時 (#duration(0, 1, 0, 0))。
List.Times(#time(12, 0, 0), 4, #duration(0, 1, 0, 0))
Result:
{
#time(12, 0, 0),
#time(13, 0, 0),
#time(14, 0, 0),
#time(15, 0, 0)
}
Category
List.Generators