You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/10/19 08:23:00 UTC
[jira] [Updated] (ARROW-9963) [Python] Recognize
datetime.timezone.utc as UTC on conversion python->pyarrow
[ https://issues.apache.org/jira/browse/ARROW-9963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated ARROW-9963:
----------------------------------
Labels: pull-request-available (was: )
> [Python] Recognize datetime.timezone.utc as UTC on conversion python->pyarrow
> -----------------------------------------------------------------------------
>
> Key: ARROW-9963
> URL: https://issues.apache.org/jira/browse/ARROW-9963
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Reporter: Joris Van den Bossche
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Related to ARROW-5248, but specifically for the stdlib {{datetime.timezone.utc}}, I think it would be nice to "recognize" this as UTC. Currently it is converted to "+00:00", while for pytz this is not the case:
> {code}
> from datetime import datetime, timezone
> import pytz
> print(pa.array([datetime.now(timezone.utc)]).type)
> print(pa.array([datetime.now(pytz.utc)]).type)
> {code}
> gives
> {code}
> timestamp[us, tz=+00:00]
> timestamp[us, tz=UTC]
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)