1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally
2 // Copyright (C) 2024 Igalia, S.L. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
6 esid: sec-temporal.now.zoneddatetime
7 description: An ISO 8601 string can be converted to a calendar ID in Calendar
13 "2020-01-01[u-ca=iso8601]",
14 "2020-01-01T00:00:00.000000000",
15 "2020-01-01T00:00:00.000000000[u-ca=iso8601]",
17 "01-01[u-ca=iso8601]",
19 "2020-01[u-ca=iso8601]",
21 const result = Temporal.Now.zonedDateTime(arg);
22 assert.sameValue(result.getISOFields().calendar, "iso8601", `Calendar created from string "${arg}"`);