Extracts the day component from a timestamp.
day(x: time) -> int
Description
Section titled “Description”The day
function extracts the day component from a timestamp as an integer
(1-31).
x: time
Section titled “x: time”The timestamp from which to extract the day.
Examples
Section titled “Examples”Extract the day from a timestamp
Section titled “Extract the day from a timestamp”from { ts: 2024-06-15T14:30:45.123456,}day = ts.day()
{ ts: 2024-06-15T14:30:45.123456, day: 15,}