to_tuple(a)
Returns the value of a converted to a tuple. a must be a time or a float.
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
float
to_tuple(3.1459)
- int
- 3
- frac
- 0.14590000000000014