temporal icon indicating copy to clipboard operation
temporal copied to clipboard

A Rust implementation of ECMAScript's Temporal API

Results 91 temporal issues
Sort by recently updated
recently updated
newest added

From the spec: > In the Japanese calendar, when fields.[[Era]] is not unset and the date represented by fields is not within the bounds of that era, fields.[[Era]] should be...

test262
ecma402

Almost any Temporal object will contain an ISODate, and when you access it for calendared information, it will construct a `Date` on the fly via `Calendar::from_iso()`. This seems inefficient: 99%...

Currently we have tests for timezone stuff in a couple places: [`builtins/compiled/zoneddatetime.rs`](https://github.com/boa-dev/temporal/blob/8f7183a3539dd05f46aedd46b7c4ebee54fa441e/src/builtins/compiled/zoneddatetime.rs#L471), [`builtins/core/timezone.rs`](https://github.com/boa-dev/temporal/blob/main/src/builtins/core/timezone.rs#L577), and [`tzdb.rs`](https://github.com/boa-dev/temporal/blob/main/src/tzdb.rs#L1244). They all test compiled data. @robertbastian is working towards zoneinfo64 (and I know @nekevss was...

providers

Right now we have a list of ZonedDateTimes that we test, and we add to them occasionally, like in https://github.com/boa-dev/temporal/pull/499. Beyond testing the to_string roundtripping (which will exercise a lot...

C-enhancement
providers

https://tc39.es/proposal-temporal/#sec-temporal-calendarmonthdaytoisoreferencedate > 2. Return an [implementation-defined](https://tc39.es/ecma262/#implementation-defined) [ISO Date Record](https://github.com/boa-dev/temporal/issues/new#sec-temporal-iso-date-records), or throw a RangeError exception, as described below. Currently we return (iso era, 1972) for all calendars. I'm not quite sure...

blocked

Temporal has a concept of a "time record" which is basically a bag of time types Boa uses PartialTime for this: https://github.com/boa-dev/boa/blob/c73c3ac2204d34ebc74c8092784d50f5f04c2b13/core/engine/src/builtins/temporal/plain_time/mod.rs#L714 But this is incorrect: PartialTime has u8/u16 fields,...

Addresses https://github.com/boa-dev/temporal/issues/189 by implementing the latest suggestion here: https://github.com/boa-dev/temporal/issues/189#issuecomment-2888385069

ZonedDateTime has a lot of the same methods as PlainDateTime, like `.year()`, but they're all fallible because of the provider stuff. With `compiled_data` they should _definitely_ not be fallible. We...

Over FFI, any allocated errors can't be easily debugged since we return `std::string_view` (`&'static str`). This is done to reduce allocations. The ErrorMessage enum is an attempt to consolidate error...

Currently, time accepts unsigned integer. Neither of the current AO implementations on `FiniteF64` support truncating to an unsigned integer where negative values are rejected but 0 is accepted. This would...

C-api