1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally
// 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.plaindatetime.prototype.until
description: Date-like strings are accepted
includes: [temporalHelpers.js]
features: [Temporal]
---*/
const dt = new Temporal.PlainDateTime(1976, 11, 18, 15, 23, 30, 123, 456, 789);
TemporalHelpers.assertDuration(
dt.until("2019-10-29T10:46:38.271986102"),
0, 0, 0, 15684, 19, 23, 8, 148, 529, 313,
"casts argument (string)"
);
reportCompare(0, 0);
|