• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// generated by diplomat-tool
2import type { IsoDate } from "./IsoDate"
3import type { IsoDateTime } from "./IsoDateTime"
4import type { Time } from "./Time"
5import type { TimeZone } from "./TimeZone"
6import type { TimeZoneVariant } from "./TimeZoneVariant"
7import type { UtcOffset } from "./UtcOffset"
8import type { UtcOffsetCalculator } from "./UtcOffsetCalculator"
9import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
10
11
12/** See the [Rust documentation for `TimeZoneInfo`](https://docs.rs/icu/latest/icu/time/struct.TimeZoneInfo.html) for more information.
13*/
14
15
16export class TimeZoneInfo {
17
18    get ffiValue(): pointer;
19
20    static utc(): TimeZoneInfo;
21
22    timeZoneId(): TimeZone;
23
24    atTime(date: IsoDate, time: Time): TimeZoneInfo;
25
26    localTime(): IsoDateTime | null;
27
28    withZoneVariant(timeZoneVariant: TimeZoneVariant): TimeZoneInfo;
29
30    inferZoneVariant(offsetCalculator: UtcOffsetCalculator): boolean;
31
32    zoneVariant(): TimeZoneVariant | null;
33
34    constructor(timeZoneId: TimeZone, offset: UtcOffset | null, zoneVariant: TimeZoneVariant | null);
35}