temporal
temporal copied to clipboard
A Rust implementation of ECMAScript's Temporal API
Just a POC for now, and only generates tests for `Duration::add`, but theoretically with the correct glue code we could transform all Temporal tests into a better format for us....
Right now the [`ixdtf`](https://crates.io/crates/ixdtf) crate is just a placeholder, but @nekevss migrated the parser to the ICU4X repo on https://github.com/unicode-org/icu4x/pull/4646. We should migrate to that when the next version of...
This issue is to track currently progress on the Temporal implementation and its components. These component's need to be completed and/or stabilized for a `0.1.0` release. Components that need to...
The proposal recently updated `Duration` in tc39/proposal-temporal#2722, tc39/proposal-temporal#2727, and tc39/proposal-temporal#2612. This will need to be updated accordingly. EDIT: There's been an overhaul of the implementation of the duration methods in...
Below is the functionality needed for the `Time` component according to the `Temporal` specification. - [x] 4.3.3 get `Temporal.PlainTime.prototype.hour` - [x] 4.3.4 get `Temporal.PlainTime.prototype.minute` - [x] 4.3.5 get `Temporal.PlainTime.prototype.second` -...
Below is the functionality needed for the `Duration` component. - [x] 7.3.3 get `Temporal.Duration.prototype.years` - [x] 7.3.4 get `Temporal.Duration.prototype.months` - [x] 7.3.5 get `Temporal.Duration.prototype.weeks` - [x] 7.3.6 get `Temporal.Duration.prototype.days` -...
Below is the functionality needed for the `ZonedDateTime` component. - [x] 6.3.3 get `Temporal.ZonedDateTime.prototype.calendarId` - [x] 6.3.4 get `Temporal.ZonedDateTime.prototype.timeZoneId` - [x] 6.3.5 get `Temporal.ZonedDateTime.prototype.year` - [x] 6.3.6 get `Temporal.ZonedDateTime.prototype.month` -...
Below is the functionality needed for the `Instant` component. - [x] 8.3.3 get `Temporal.Instant.prototype.epochSeconds` - [x] 8.3.4 get `Temporal.Instant.prototype.epochMilliseconds` - [x] 8.3.5 get `Temporal.Instant.prototype.epochMicroseconds` - [x] 8.3.6 get `Temporal.Instant.prototype.epochNanoseconds` -...
This is a general tracking issue for the `Date` component functionality according to the proposal specification. - [x] 3.3.3 get `Temporal.PlainDate.prototype.calendarId` - [x] 3.3.4 get `Temporal.PlainDate.prototype.year` - [x] 3.3.5 get...
Below is the general functionality that is needed for the `DateTime` component according to the Temporal Proposal's specification. - [x] 5.3.3 get `Temporal.PlainDateTime.prototype.calendarId` - [x] 5.3.4 get `Temporal.PlainDateTime.prototype.year` - [x]...