Automatically parse datetimes with 12-hour time (AM/PM) #21017
Labels
A-temporal
Area: date/time functionality
enhancement
New feature or an improvement of an existing feature
Description
Polars currently doesn't support automatically parsing datetimes with 12 hour time using AM/PM.
For example, the following datetimes are not automatically parsed:
It's possible to specify 12 hour formats as follows:
i.e. The same as other formats, but replace
%H
with%I
, and add%P
or%p
to the end for the AM/PM marker.I'm guessing this could be fixed by extending the list of supported formats here:
https://github.com/pola-rs/polars/blob/main/crates/polars-time/src/chunkedarray/string/patterns.rs
Is there a reason not to automatically parse these datetime styles?
The text was updated successfully, but these errors were encountered: