mirror of
https://github.com/tc39/test262.git
synced 2025-08-22 10:28:30 +02:00
13 lines
447 B
JavaScript
13 lines
447 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.instant.from
|
|
description: Temporal.Instant string with sub-minute offset
|
|
features: [Temporal]
|
|
---*/
|
|
|
|
const str = "1970-01-01T00:19:32.37+00:19:32.37";
|
|
const result = Temporal.Instant.from(str);
|
|
assert.sameValue(result.epochNanoseconds, 0n, "if present, sub-minute offset is accepted exactly");
|