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