docs: to_datetime: document that %Y zero-pads years #18791
Labels
A-timeseries
Area: date/time functionality
documentation
Improvements or additions to documentation
python
Related to Python Polars
Checks
Reproducible example
Log output
No response
Issue description
Instead of throwing an error when a 2 digit year is passed for format code %Y (not %y), polars is automatically zero padding it.
(By silently ignoring this exception, a try except clause for handling wrongly formatted data is not getting triggered.)
Expected behavior
An exception should be raised, similar to pandas' and datetime's behaviour.
Installed versions
The text was updated successfully, but these errors were encountered: