today

today() 🡒 date, pure function

Returns the current wall-time date according to UTC.

Example:

show scalar "" with today()

The function is considered as a compile-time constant, hence, its results can be used to create a read pattern.

today(timezone: number) 🡒 date, pure function

Returns the current wall-time date with the time-zone passed as an argument and expressed as the difference in hours to UTC.

Example:

show scalar "" with today(9) // +9 UTC, Los Angeles

The function is considered as a compile-time constant, hence, if its argument is a compile-time constant as well, its results can be used to create a read pattern.