| // 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.tostring |
| description: Checking the string form of an explicitly constructed instance with all arguments |
| features: [Temporal] |
| ---*/ |
| |
| const calendar = Temporal.Calendar.from("iso8601"); |
| const datetime = new Temporal.PlainDateTime(1976, 11, 18, 15, 23, 30, 123, 456, 789, calendar); |
| |
| assert.sameValue(datetime.toString(), "1976-11-18T15:23:30.123456789", "check string value"); |