Joris Van den Bossche created ARROW-13033:
---------------------------------------------
Summary: [C++] Kernel to localize naive timestamps to a timezone
(preserving clock-time)
Key: ARROW-13033
URL: https://issues.apache.org/jira/browse/ARROW-13033
Project: Apache Arrow
Issue Type: Improvement
Components: C++
Reporter: Joris Van den Bossche
Given a tz-naive timestamp, "localize" would interpret that timestamp as local
in a given timezone, and return a tz-aware timestamp keeping the same "clock
time" (the same year/month/day/hour/etc in the printed representation). Under
the hood this converts the timestamp value from that timezone to UTC, since
tz-aware timestamps are stored as UTC.
References:
[tz_localize|https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DatetimeIndex.tz_localize.html]
in pandas, or
[force_tz|https://lubridate.tidyverse.org/reference/force_tz.html] in R's
lubridate package
This will (eventually) also have to deal with ambiguous or non-existing times.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)