mirror of
https://github.com/denoland/deno.git
synced 2025-02-23 13:43:31 -05:00

Mainly I removed `Temporal.Calendar` and `Temporal.TimeZone` and replaced them to APIs that handle calendar and timezone as strings. https://github.com/tc39/proposal-temporal/pull/2925 Related #24836
11 lines
361 B
TypeScript
11 lines
361 B
TypeScript
console.log(Temporal.Now.timeZoneId());
|
|
// @ts-expect-error: undefined check
|
|
console.log(Temporal.Now.timeZone);
|
|
|
|
const zoned = new Temporal.ZonedDateTime(0n, "UTC");
|
|
console.log(zoned.calendarId);
|
|
console.log(zoned.timeZoneId);
|
|
// @ts-expect-error: undefined check
|
|
console.log(zoned.calendar);
|
|
// @ts-expect-error: undefined check
|
|
console.log(zoned.timeZone);
|