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

Put together this PR based on some ongoing discussion around the host system returned by `Temporal::now()`. I think this may be the right direction for this API in temporal_rs. But...

I was interested in investigating this crate as a potential replacement for my usage of `chrono` and `chrono_tz`, but noted that it doesn't have any facility for formatting a date...

C-enhancement
C-api

Firstly, thanks for this amazing library, I'm using it in my own JS engine Yavashark. I would propose an API where `temporal_rs` code can directly get properties from an JS...

Note: this doesn't necessarily have to be called `from_signed_fields`. Currently, the ECMAScript constructors can be called with integer values. This means it is entirely possible that a `PlainTime` may be...

C-api

This is mainly to support the functionality in [`GetRelativeToOption`](https://tc39.es/proposal-temporal/#sec-temporal-gettemporalrelativetooption) when a value is a partial fields object.

C-enhancement

The functions for calendar parsing can be found [here](https://github.com/boa-dev/temporal/blob/main/src/parsers.rs#L824) and the time zone parsing is [here](https://github.com/boa-dev/temporal/blob/main/src/parsers/timezone.rs#L13). Currently, the `YearMonth` and `MonthDay` order are not correct. Also, currently parsing a zoned...

C-bug
E-easy

Currently, we only support -- by default -- vanguard parsing but not rearguard It would be nice to provide a configuration option to switch between the two. An example of...

C-enhancement

The new compiled data should solve much of the issues with the previous version (primarily the size). We should add the new version to the tests, fix any issues that...

providers

```rust use temporal_rs::{PlainDate, Calendar}; use tinystr::tinystr; use core::str::FromStr; fn main() { let iso8601_date = PlainDate::try_new_iso(2025, 7, 23).unwrap(); let chinese_date = iso8601_date.with_calendar(Calendar::from_str("chinese").unwrap()).unwrap(); let korean_date = iso8601_date.with_calendar(Calendar::from_str("dangi").unwrap()).unwrap(); println!("{} {}", chinese_date.year(), korean_date.year()); }...

blocked
C-internal

As far as I understand, there is a consensus that Temporal doesn't accept nor do fallback for 'islamic' and 'islamic-rgsa' calendars, as specified in tc39/proposal-intl-era-monthcode#46 . But currently temporal_rs accepts...