[ 
https://issues.apache.org/jira/browse/ARROW-13247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17373374#comment-17373374
 ] 

Antoine Pitrou edited comment on ARROW-13247 at 7/2/21, 9:25 AM:
-----------------------------------------------------------------

I'm opposed to adding vanity kernels just because people don't want to write 
two lines of logic.


was (Author: pitrou):
I'm oppose to adding vanity kernels just because people don't want to write two 
lines of logic.

> [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
>            Priority: Major
>              Labels: timestamp, timezone
>
> 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)

Reply via email to