Skip to content

Improve relative datetime parsing#27

Merged
itssimon merged 1 commit intomainfrom
improve-duration-parsing
Apr 22, 2026
Merged

Improve relative datetime parsing#27
itssimon merged 1 commit intomainfrom
improve-duration-parsing

Conversation

@itssimon
Copy link
Copy Markdown
Member

@itssimon itssimon commented Apr 22, 2026

Summary by cubic

Extend resolve_relative_datetime to parse simple ISO 8601-style durations (e.g., P14D, -P14D, PT24H, PT30M) in addition to compact forms like 24h, returning the UTC instant that far in the past as RFC 3339. Inputs that don’t match are left unchanged, and tests cover the new formats and case-insensitive handling.

Written for commit 5d68b1d. Summary will update on new commits.

@itssimon itssimon self-assigned this Apr 22, 2026
@itssimon itssimon changed the title Improve relative duration parsing Improve relative datetime parsing Apr 22, 2026
@sentry
Copy link
Copy Markdown

sentry Bot commented Apr 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.23%. Comparing base (408dc37) to head (5d68b1d).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #27      +/-   ##
==========================================
+ Coverage   91.20%   91.23%   +0.03%     
==========================================
  Files          12       12              
  Lines        2057     2066       +9     
==========================================
+ Hits         1876     1885       +9     
  Misses        181      181              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@itssimon itssimon merged commit 0d9cc56 into main Apr 22, 2026
6 checks passed
@itssimon itssimon deleted the improve-duration-parsing branch April 22, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant