OpenBI Docs Buy

List.Times

A list of times of day from a start, a set count of them, each a step from the last.

Group: List. Power Query M has it too: a query that uses it is written as in Power BI.

Syntax

List.Times(start as time, count as number, step as duration) as list
ParameterTypeDescription
starttimeThe first time.
countnumberHow many times.
stepdurationThe time between them.

Returns

list. The times.

Examples

Opening hours in half hours

List.Times(#time(9, 0, 0), 4, #duration(0, 0, 30, 0))
{#time(9, 0, 0), #time(9, 30, 0), #time(10, 0, 0), #time(10, 30, 0)}

List.DateTimes, List.Durations.

Last updated · OpenBI Studio 0.3.79