rok commented on a change in pull request #12464: URL: https://github.com/apache/arrow/pull/12464#discussion_r833871782
########## File path: cpp/src/arrow/compute/kernels/scalar_temporal_unary.cc ########## @@ -1143,6 +1145,117 @@ struct Strftime { }; #endif +// ---------------------------------------------------------------------- +// Convert string representations of timestamps in arbitrary format to timestamps + +static std::string GetZone(std::string format) { + // Check for use of %z or %Z + size_t cur = 0; + std::string zone = ""; + while (cur < format.size() - 1) { + if (format[cur] == '%') { Review comment: Switched to a sequence counting approach. -- 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