Convert time between time zones.

Parameters:
See dedicated page for more information.
See dedicated page for more information.
The convertTimeZones action is designed to transform DateTime values from one time zone to another. It supports both constant and variable source time zones and allows users to define a destination time zone and a custom DateTime format. This operation is crucial for ensuring time consistency in globally distributed datasets, especially when performing time-based joins or aggregations across multiple time zones.
Partitioning Mode:
By default, the action uses fixed partitioning with 100,000 rows (can be configured under the partitioning section).
myTZSource and myTZSource2 are provided, the action uses myTZSource2 (the column value) and ignores the constant time zone.myName) will contain the converted DateTime string formatted according to myDTFormat.| id | event_time | tz_source_col |
|---|---|---|
| 1 | 2024-12-31 23:00:00 | Asia/Tokyo |
| 2 | 2024-07-01 12:30:00 | America/New_York |
| 3 | 2024-06-10 14:45:00 | Europe/Brussels |
myTime: event_timemyName: time_utcmyTZSource: Europe/BrusselsmyTZSource2: tz_source_colmyTZDestination: UTCmyDTFormat: %Y-%m-%d %H:%M:%S| id | event_time | tz_source_col | time_utc |
|---|---|---|---|
| 1 | 2024-12-31 23:00:00 | Asia/Tokyo | 2024-12-31 14:00:00 |
| 2 | 2024-07-01 12:30:00 | America/New_York | 2024-07-01 16:30:00 |
| 3 | 2024-06-10 14:45:00 | Europe/Brussels | 2024-06-10 12:45:00 |
Notes:
When the parametermyTZSource2is provided, the constantmyTZSourceis ignored.
EnsuremyDTFormatfollows valid R DateTime syntax (e.g.,%Y-%m-%d %H:%M:%S).
