err: strptime panics (instead of erroring) for out-of-bounds dates #19928
Labels
A-exceptions
Area: exception handling
A-panic
Area: code that results in panic exceptions
A-temporal
Area: date/time functionality
bug
Something isn't working
rust
Related to Rust Polars
Checks
Reproducible example
Log output
Issue description
Even when strict is false (expecting null), strptime can panic for some inputs, like above in the year 2300. From what testing I've done, microseconds and milliseconds never panic under any condition, they always return null.
Expected behavior
If strict is false, I'd expect nanosecond datetime parsing to return null upon failure, as in micro and milli parsing.
Thanks!
Installed versions
The text was updated successfully, but these errors were encountered: