Skip to main content
Version: Next

now

Gets the current wallclock time.

now() -> time

Description

The now function returns the current wallclock time.

Examples

Get the time in UTC

let $now = now()
from { x: $now }
{x: 2024-10-28T13:27:33.957987}

Compute a field with the current time

subscribe "my-topic"
select ts=now()
{ts: 2024-10-30T15:03:04.85298}
{ts: 2024-10-30T15:03:06.31878}
{ts: 2024-10-30T15:03:07.59813}

See Also

as_secs, from_epoch_ms, since_epoch