mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
e522f4b65a
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);
|