Skip to content

Add parsing helper functions for DateTime, Date, Time, and Duration#951

Open
sudoscrawl wants to merge 20 commits into
python-pendulum:masterfrom
sudoscrawl:master
Open

Add parsing helper functions for DateTime, Date, Time, and Duration#951
sudoscrawl wants to merge 20 commits into
python-pendulum:masterfrom
sudoscrawl:master

Conversation

@sudoscrawl

@sudoscrawl sudoscrawl commented Mar 19, 2026

Copy link
Copy Markdown

Pull Request Check List

  • Added tests for changed code.
  • Updated documentation for changed code.

This PR adds parsing helper functions:

  • parse_datetime
  • parse_date
  • parse_time
  • parse_duration

These functions provide a convenient to parse string without having to use assert isinstance(..., Time) etc. everytime while parsing in type checked codebases.
Closes #917

@codspeed-hq

codspeed-hq Bot commented Mar 30, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 1 untouched benchmark


Comparing sudoscrawl:master (dfda184) with master (0a88aec)

Open in CodSpeed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant