to_tuple(a)
Returns the value of a converted to a tuple. a must be a time.
Examples
time
to_tuple(@2026-07-04T21:15:23.100Z)
- year
- 2026
- month
- 7
- day
- 4
- hour
- 21
- min
- 15
- sec
- 23
- nsec
- 100000000
- loc
- 0
time - extract hour
to_tuple(@2026-07-04T21:15:23.100Z).hour
21