You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "jorisvandenbossche (via GitHub)" <gi...@apache.org> on 2024/02/27 13:20:21 UTC
Re: [I] string created by strftime can't be parsed by strptime [arrow]
jorisvandenbossche commented on issue #40170:
URL: https://github.com/apache/arrow/issues/40170#issuecomment-1966537990
Which version of pyarrow are you using? For me, using the latest dev version, this seems to work fine:
```
In [8]: pa.compute.strftime(pd.Timestamp.utcnow(), "%Y-%m-%d %z")
Out[8]: <pyarrow.StringScalar: '2024-02-27 +0000'>
In [9]: pa.compute.strptime('2024-02-21 +0000', "%Y-%m-%d %z", "ns")
Out[9]: <pyarrow.TimestampScalar: '2024-02-21T00:00:00.000000000+0000'>
```
--
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-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org