2022-01-24 13:36:43 -05:00

13 lines
378 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.plaindatetime
description: String calendar argument
features: [Temporal]
---*/
const dt = Temporal.Now.plainDateTime("gregory");
assert(dt instanceof Temporal.PlainDateTime);
assert.sameValue(dt.calendar.id, "gregory");