mirror of https://github.com/tc39/test262.git
16 lines
559 B
JavaScript
16 lines
559 B
JavaScript
// 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.zoneddatetimeiso
|
|
description: String calendar argument
|
|
features: [Temporal]
|
|
---*/
|
|
|
|
const zdt = Temporal.Now.zonedDateTimeISO("America/Los_Angeles");
|
|
assert(zdt instanceof Temporal.ZonedDateTime);
|
|
assert(zdt.calendar instanceof Temporal.Calendar);
|
|
assert.sameValue(zdt.calendar.id, "iso8601");
|
|
assert(zdt.timeZone instanceof Temporal.TimeZone);
|
|
assert.sameValue(zdt.timeZone.id, "America/Los_Angeles");
|