lidavidm commented on pull request #11358:
URL: https://github.com/apache/arrow/pull/11358#issuecomment-947764880


   This is what happens on this branch:
   
   ```
   >>> pa.array(["2021-01-01 09:00:00"]).cast(pa.timestamp("s"))
   <pyarrow.lib.TimestampArray object at 0x7f312c111760>
   [
     2021-01-01 09:00:00
   ]
   >>> pa.array(["2021-01-01 09:00:00"]).cast(pa.timestamp("s", tz="UTC"))
   <pyarrow.lib.TimestampArray object at 0x7f312c111700>
   [
     2021-01-01 09:00:00
   ]
   >>> pa.array(["2021-01-01 09:00:00"]).cast(pa.timestamp("s", 
tz="America/New_York"))
   <pyarrow.lib.TimestampArray object at 0x7f312c111760>
   [
     2021-01-01 09:00:00
   ]
   >>> pa.array(["2021-01-01 09:00:00-0500"]).cast(pa.timestamp("s", 
tz="America/New_York"))
   <pyarrow.lib.TimestampArray object at 0x7f312c111700>
   [
     2021-01-01 14:00:00
   ]
   >>> pa.array(["2021-01-01 09:00:00+0500"]).cast(pa.timestamp("s"))
   <pyarrow.lib.TimestampArray object at 0x7f312c111520>
   [
     2021-01-01 04:00:00
   ]
   ```
   
   so as with CSV, this needs to be fixed - I'll take a look.


-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to