OpenBI Docs Buy

DateTimeZone.FixedLocalNow

The computer's date, time and offset, read once and then the same for the whole evaluation.

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

Syntax

DateTimeZone.FixedLocalNow() as datetimezone

It takes no parameters.

Returns

datetimezone. The local date, time and offset when the clock was first read.

Remarks

  • Every call during one evaluation gives the same value. DateTimeZone.LocalNow reads the clock again at each call.

Examples

Now, once, with the offset

DateTimeZone.FixedLocalNow()
#datetimezone(2026, 11, 8, 15, 42, 28, 1, 0)

Two calls agree

DateTimeZone.FixedLocalNow() = DateTimeZone.FixedLocalNow()
true

DateTimeZone.LocalNow, DateTimeZone.FixedUtcNow, DateTime.FixedLocalNow.

Last updated · OpenBI Studio 0.3.79