Skip to content

Conversation

@lxcid
Copy link
Contributor

@lxcid lxcid commented Jan 12, 2026

Add support for comma (,) as a decimal separator in fractional seconds for both time and duration components, as specified in ISO 8601.

Changes:

  • Parser now accepts both . and , as decimal separators
  • Stringify normalizes all output to canonical . notation
  • Added comprehensive test coverage for both formats
  • Updated documentation with European format examples

This improves ISO 8601 compliance and enables parsing of temporal strings from European locales where comma is the standard decimal separator (e.g., "T10:30:45,123" and "PT1,5S").

Add support for comma (,) as a decimal separator in fractional seconds
for both time and duration components, as specified in ISO 8601.

Changes:
- Parser now accepts both . and , as decimal separators
- Stringify normalizes all output to canonical . notation
- Added comprehensive test coverage for both formats
- Updated documentation with European format examples

This improves ISO 8601 compliance and enables parsing of temporal
strings from European locales where comma is the standard decimal
separator (e.g., "T10:30:45,123" and "PT1,5S").
@changeset-bot
Copy link

changeset-bot bot commented Jan 12, 2026

🦋 Changeset detected

Latest commit: b97aa25

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@taskade/temporal-parser Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@lxcid lxcid merged commit 692b0f7 into main Jan 12, 2026
3 checks passed
@lxcid lxcid deleted the lxcid/european-format branch January 12, 2026 13:03
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.

2 participants