Debian Codegraph @

js/src/tests/test262/built-ins/Temporal/PlainDateTime/from/argument-string-timezone.js

raw
1 // |reftest| shell-option(--enable-temporal) skip-if(!this.hasOwnProperty('Temporal')||!xulRuntime.shell) -- Temporal is not enabled unconditionally, requires shell-options
2 // Copyright (C) 2022 Igalia, S.L. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-temporal.plaindatetime.from
7 description: Timezone, if specified, is ignored
8 features: [Temporal]
9 includes: [temporalHelpers.js]
10 ---*/
11
12 TemporalHelpers.assertPlainDateTime(
13 Temporal.PlainDateTime.from("2020-01-01T01:23:45[Asia/Kolkata]"),
14 2020, 1, "M01", 1, 1, 23, 45, 0, 0, 0,
15 "ignores if a timezone is specified"
16 );
17
18 reportCompare(0, 0);