icu4x icon indicating copy to clipboard operation
icu4x copied to clipboard

Consider adding TimeZone constructor from IANA

Open sffc opened this issue 7 months ago • 0 comments

Currently if you want to create a TimeZone from an IANA ID, you need to know to create an IanaParser.

It would be more discoverable, especially on FFI, if TimeZone itself had a function with the following signature

impl TimeZone {
    pub fn try_from_iana_str(iana_str: &str, parser: IanaParserBorrowed) -> Self { ... }
}

If we add this constructor, we should make it the default constructor for the WASM Demo.

sffc avatar May 07 '25 00:05 sffc