Skip to content

Add Sedate IXDTF (extended ISO) string parsing function #2127

Open
@sffc

Description

@sffc

We should add a function that parses ISO-8601 strings. We should follow the Temporal grammar:

https://tc39.es/proposal-temporal/#sec-temporal-iso8601grammar

i.e., we should implement a string parser conforming to IETF Sedate that parses a string into its components (date, time, time zone, calendar), and use this parser in APIs and anywhere else we parse date strings. Think about where to put this code in the crate structure.

We should start with the DateTime production, and work our way up towards CalendarDateTime and TemporalZonedDateTimeString.

Examples of strings that are accepted as part of the DateTime grammar:

  • 2022-06-27T16:31:00.000
  • 2022-06-27t16:31:00.000
  • 2022-06-27 16:31:00.000
  • 20220627 16:31:00.000
  • 20220627 163100.000
  • 20220627 163100
  • 20220627 1631

Metadata

Metadata

Assignees

Labels

C-datetimeComponent: datetime, calendars, time zonesS-mediumSize: Less than a week (larger bug fix or enhancement)T-enhancementType: Nice-to-have but not requireddiscussDiscuss at a future ICU4X-SC meetingdiscuss-triagedThe stakeholders for this issue have been identified and it can be discussed out-of-bandgood first issueGood for newcomershelp wantedIssue needs an assignee

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions