Extracts the minute (0-59) from a datetime.
Accepts Date, NaiveDateTime, or DateTime structs. When given a
Date (which has no time component), returns 0 (midnight).
Examples
minute(datetime(2024, 1, 15, 13, 30, 0)) → 30
minute(date(2024, 1, 15)) → 0