Skip to content

day

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,
}

year, month, hour, minute, second

Last updated: