Skip to content

Add Temporal (Stage 3) types #60164

@milkcask

Description

@milkcask

⚙ Compilation target

ESNext

⚙ Library

n/a

Missing / Incorrect Definition

  • Temporal
  • Temporal.Now
  • Temporal.Instant
  • Temporal.ZonedDateTime
  • Temporal.PlainDate, Temporal.PlainTime, Temporal.PlainDateTime
  • Temporal.PlainYearMonth, Temporal.PlainMonthDay
  • Temporal.Duration

Sample Code

const now = Temporal.Now.instant();
const past = Temporal.Instant.from('1969-07-20T20:17Z');

Documentation Link

https://tc39.es/proposal-temporal/docs/index.html

The API itself is quite stable. It is calendar that is blocking implementation.

Metadata

Metadata

Assignees

Labels

Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScript

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions