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.LocalNowreads 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
Related functions
DateTimeZone.LocalNow, DateTimeZone.FixedUtcNow, DateTime.FixedLocalNow.