Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

Gets the current wallclock time.

now() -> time

The now function returns the current wallclock time.

let $now = now()
from { x: $now }
{x: 2024-10-28T13:27:33.957987}
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}

Last updated: