rok commented on issue #36558:
URL: https://github.com/apache/arrow/issues/36558#issuecomment-5025332447

   > I think it would make more sense to do this as a struct where one field 
has the time normalized to UTC and the other has the time zone and/or offset.
   > 
   > This is related to [#44248](https://github.com/apache/arrow/issues/44248).
   
   This (per-row offset) proposal was since voted and merge and this issue was 
resolved with https://github.com/apache/arrow/pull/12865 too, so the following 
behavior is now in place:
   
   ```python
   >>> import pyarrow as pa
   >>> import pyarrow as pa
   >>> import pyarrow.compute as pc
   >>>
   >>> from datetime import datetime
   >>>
   >>> pc.assume_timezone(pa.array([datetime(2020, 1, 1)]), '+12:34')
   <pyarrow.lib.TimestampArray object at 0x7ba8e0287460>
   [
     2019-12-31 11:26:00.000000Z
   ]
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to