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