Omega359 opened a new issue, #5303: URL: https://github.com/apache/arrow-rs/issues/5303
This is related to https://github.com/apache/arrow-datafusion/issues/5398 where functions for parsing string -> datetime and string -> nanos would be added to include a second 'format' parameter. The format would be a chrono format (https://docs.rs/chrono/latest/chrono/format/strftime/index.html) and would return an Err if the string couldn't be parsed with the provided format. The proposed two new functions that would be added would be : * ```pub fn string_to_datetime_formatted<T: TimeZone>(timezone: &T, s: &str, format: &str) -> Result<DateTime<T>, ArrowError>``` (mirrors the existing string_to_datetime function) * ```pub fn string_to_timestamp_nanos_formatted(s: &str, format: &str) -> Result<i64, ArrowError>``` (mirrors the existing string_to_timestamp_nanos function) In addition, for completeness all the existing Parser implementations in that file would be updated to include a 'parse_formatted' implementation where missing. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
