Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IS0-8601 and RFC-3339 pattern without microsecond fraction #505

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

veewee
Copy link
Collaborator

@veewee veewee commented Jan 21, 2025

In both ISO-8601 and RFC-3339, the microseconds part (decimal fraction) is optional.

In this PR, I introduce 2 more options for these patterns without microseconds.
This makes it interopable with the default PHP date formats (atom, iso-8601 and expanded, DATE_RFC3339 and expanded)

The ISO standard goes even further and makes seconds optional, 2-year digits possible, ...
That is out of scope for now.

@coveralls
Copy link

coveralls commented Jan 21, 2025

Pull Request Test Coverage Report for Build 12923419355

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 98.483%

Totals Coverage Status
Change from base Build 12920194992: 0.0%
Covered Lines: 5322
Relevant Lines: 5404

💛 - Coveralls

@veewee veewee requested a review from azjezz January 21, 2025 06:39
azjezz
azjezz previously approved these changes Jan 23, 2025
Copy link
Owner

@azjezz azjezz left a comment

Choose a reason for hiding this comment

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

LGTM, needs rebase.

@veewee veewee merged commit 14ad277 into azjezz:next Jan 23, 2025
18 checks passed
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.

3 participants