v.21.4New Features
Add timezoneOf function and standardize timezone-related aliases
Add functiontimezoneOfthat returns the timezone name ofDateTimeorDateTime64data types. This does not close #9959. Fix inconsistencies in function names: add aliasestimezoneandtimeZoneas well astoTimezoneandtoTimeZoneandtimezoneOfandtimeZoneOf. #22001 (alexey-milovidov).
Why it matters
This feature addresses inconsistencies in timezone-related function names and provides an easy way to retrieve the timezone name fromDateTime or DateTime64 values, enhancing clarity and usability for users working with timezone-aware data.How to use it
Use the newtimezoneOf function by passing a DateTime or DateTime64 value to it to get its timezone name. Additionally, you can use any of the aliases timezone, timeZone, toTimezone, toTimeZone, timezoneOf, and timeZoneOf interchangeably in your queries for consistency.