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.

Extracts the day component from a timestamp.

day(x: time) -> int

The day function extracts the day component from a timestamp as an integer (1-31).

The timestamp from which to extract the day.

from {
ts: 2024-06-15T14:30:45.123456,
}
day = ts.day()
{
ts: 2024-06-15T14:30:45.123456,
day: 15,
}

Last updated: