You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "rok (via GitHub)" <gi...@apache.org> on 2023/02/09 09:57:06 UTC

[GitHub] [arrow] rok commented on issue #34081: [Python] strptime fails to parse with %z on Mac

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

   Hey! Strptime uses [system `strptime`](https://github.com/apache/arrow/blob/master/cpp/src/arrow/util/value_parsing.h#L793) on linux/MacOS and [vendored strptime](https://github.com/apache/arrow/blob/master/cpp/src/arrow/vendored/musl/strptime.c) on windows. As per comment [here](https://github.com/apache/arrow/blob/master/cpp/src/arrow/util/value_parsing_test.cc#L787-L813):
   ```
     // N.B. GNU %z supports ISO8601 format while BSD %z supports only
     // +HHMM or -HHMM and POSIX doesn't appear to define %z at all
   ```
   I suspect `strptime(["2012-01-01 01:02:03+0100"], format="%Y-%m-%d %H:%M:%S%z", unit="s")` will work on MacOS.
   Thanks for reporting this @ayhanfuat ! Let's include this into the umbrella issue as it would be nice to fix.


-- 
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