这是indexloc提供的服务,不要输入任何密码
Skip to content

Round out z.iso so that it matches the Temporal proposal #5441

@rubber-duck-software

Description

@rubber-duck-software

The temporal proposal for JS is at long last moving forward! (Check out details here)

This introduces 8 date/time data types into the javascript ecosystem

  • Duration
  • Instant
  • Date
  • DateTime
  • MonthDay
  • Time
  • YearMonth
  • ZonedDateTime

Each of these data types have a standard way they are serialized on the wire. Already zod supports 4 of these iso strings under z.iso . I propose supporting the rest to match the temporal proposal.

This would mean adding

  • z.iso.yearMonth
  • z.iso.zonedDateTime
  • z.iso.instant
  • z.iso.monthDay

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions