You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Joris Van den Bossche (Jira)" <ji...@apache.org> on 2021/07/02 08:59:00 UTC

[jira] [Created] (ARROW-13247) [C++] Kernel to convert timestamp with timezone to another timezone (metadata-only change)

Joris Van den Bossche created ARROW-13247:
---------------------------------------------

             Summary: [C++] Kernel to convert timestamp with timezone to another timezone (metadata-only change)
                 Key: ARROW-13247
                 URL: https://issues.apache.org/jira/browse/ARROW-13247
             Project: Apache Arrow
          Issue Type: Improvement
            Reporter: Joris Van den Bossche


Related to ARROW-13033, but assuming you already have a tz-aware "timestamp with timezone" type, and you want to change it to have another timezone. 

In practice, this is a trivial, metadata-only change since in both cases the actual values are stored in UTC, and so it's only changing the tz parametrization of the timestamp type. But, for convenience, I think it would still be useful to have it as an actual kernel to easily integrate this operation in this framework.

References: [tz_convert|https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DatetimeIndex.tz_convert.html] in pandas, or [with_tz|https://lubridate.tidyverse.org/reference/with_tz.html] in R's lubridate package,{{withZone}} in Joda or [withZoneSameInstant|https://docs.oracle.com/javase/8/docs/api/java/time/ZonedDateTime.html#withZoneSameInstant-java.time.ZoneId-] in Java



--
This message was sent by Atlassian Jira
(v8.3.4#803005)