// Copyright (C) 2022 Igalia, S.L. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-temporal.now.zoneddatetime description: String calendar argument features: [Temporal] ---*/ const zdt = Temporal.Now.zonedDateTime("gregory"); const tz = Temporal.Now.timeZone(); assert(zdt instanceof Temporal.ZonedDateTime); assert(zdt.calendar instanceof Temporal.Calendar); assert.sameValue(zdt.calendar.id, "gregory"); assert(zdt.timeZone instanceof Temporal.TimeZone); assert.sameValue(zdt.timeZone.id, tz.id);