OpenBI Docs Buy

List.DateTimeZones

A list of datetimes with a time zone 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.DateTimeZones(start as datetimezone, count as number, step as duration) as list
ParameterTypeDescription
startdatetimezoneThe first value, with its zone.
countnumberHow many values.
stepdurationThe time between them.

Returns

list. The values; each keeps the start's zone.

Examples

Hourly readings in Central European Time

List.DateTimeZones(#datetimezone(2024, 3, 1, 9, 0, 0, 1, 0), 3, #duration(0, 1, 0, 0))
{#datetimezone(2024, 3, 1, 9, 0, 0, 1, 0), #datetimezone(2024, 3, 1, 10, 0, 0, 1, 0), #datetimezone(2024, 3, 1, 11, 0, 0, 1, 0)}

List.DateTimes, DateTimeZone.SwitchZone.

Last updated · OpenBI Studio 0.3.79