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

Require ISO 8601 date or datetime literals #687

Merged
merged 2 commits into from
Feb 26, 2024
Merged

Conversation

eemeli
Copy link
Collaborator

@eemeli eemeli commented Feb 23, 2024

Fixes #680, see discussion there.

The regexp included here is the subset that should be supported by all reasonable implementations.

This may need a rebase once #685 lands.

@eemeli eemeli added registry normative LDML45 LDML45 Release (Tech Preview) labels Feb 23, 2024
@aphillips aphillips added the Agenda+ Requested for upcoming teleconference label Feb 23, 2024
@aphillips
Copy link
Member

I think I oppose this change as written. We need to discuss as a group. 😿

The `timezoneOffset` of each of these formats is optional.
When the offset is not present, implementations should use a floating time type
A **_<dfn>date/time literal value</dfn>_** is a non-empty string consisting of an ISO 8601 date,
or an ISO 8601 datetime optionally followed by a timezone offset.
Copy link
Member

Choose a reason for hiding this comment

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

Issue: why only a timezone offset? In general IANA time zone annotations should be used instead.

Did you consider citing IXDTF?

@aphillips
Copy link
Member

In the 2024-02-26 call the WG agreed to merge this. Further work will be done on date/time/datetime literals (as already planned).

@aphillips aphillips merged commit 5d8bf61 into main Feb 26, 2024
1 check passed
@aphillips aphillips deleted the iso8601-datetimes branch February 26, 2024 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Agenda+ Requested for upcoming teleconference LDML45 LDML45 Release (Tech Preview) normative registry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restrict literals for :date and :time
3 participants