tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

TimeZone.d.ts (1607B)


      1 // generated by diplomat-tool
      2 import type { TimeZoneInfo } from "./TimeZoneInfo"
      3 import type { UtcOffset } from "./UtcOffset"
      4 import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
      5 
      6 
      7 /**
      8 * See the [Rust documentation for `TimeZone`](https://docs.rs/icu/latest/icu/time/struct.TimeZone.html) for more information.
      9 */
     10 
     11 
     12 export class TimeZone {
     13    get ffiValue(): pointer;
     14 
     15 
     16    /**
     17     * The unknown time zone.
     18     *
     19     * See the [Rust documentation for `unknown`](https://docs.rs/icu/latest/icu/time/struct.TimeZoneInfo.html#method.unknown) for more information.
     20     */
     21    static unknown(): TimeZone;
     22 
     23    /**
     24     * Whether the time zone is the unknown zone.
     25     *
     26     * See the [Rust documentation for `is_unknown`](https://docs.rs/icu/latest/icu/time/struct.TimeZone.html#method.is_unknown) for more information.
     27     */
     28    isUnknown(): boolean;
     29 
     30    /**
     31     * Creates a time zone from a BCP-47 string.
     32     *
     33     * Returns the unknown time zone if the string is not a valid BCP-47 subtag.
     34     *
     35     * Additional information: [1](https://docs.rs/icu/latest/icu/time/struct.TimeZone.html)
     36     */
     37    static createFromBcp47(id: string): TimeZone;
     38 
     39    /**
     40     * See the [Rust documentation for `with_offset`](https://docs.rs/icu/latest/icu/time/struct.TimeZone.html#method.with_offset) for more information.
     41     */
     42    withOffset(offset: UtcOffset): TimeZoneInfo;
     43 
     44    /**
     45     * See the [Rust documentation for `without_offset`](https://docs.rs/icu/latest/icu/time/struct.TimeZone.html#method.without_offset) for more information.
     46     */
     47    withoutOffset(): TimeZoneInfo;
     48 }