mirror of
https://github.com/denoland/deno.git
synced 2024-12-15 11:58:42 -05:00
12 lines
361 B
TypeScript
12 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);
|