Name Description Size Coverage
argument-number.js --- esid: sec-temporal.plaindatetime.from description: A number cannot be used in place of a Temporal.PlainDateTime features: [Temporal] --- 640 -
argument-object-month.js --- esid: sec-temporal.plaindatetime.from description: A plain object argument needs to specify a month features: [Temporal] --- 1026 -
argument-object.js --- esid: sec-temporal.plaindatetime.from description: Plain objects are acceptable features: [Temporal] includes: [temporalHelpers.js] --- 1360 -
argument-plaindate.js --- esid: sec-temporal.plaindatetime.from description: Fast path for converting Temporal.PlainDate to Temporal.PlainDateTime by reading internal slots info: | sec-temporal.plaindatetime.from step 3: 3. Return ? ToTemporalDateTime(_item_, _options_). sec-temporal-totemporaldatetime step 2.b: b. If _item_ has an [[InitializedTemporalDate]] internal slot, then i. Return ? CreateTemporalDateTime(_item_.[[ISOYear]], _item_.[[ISOMonth]], _item_.[[ISODay]], 0, 0, 0, 0, 0, 0, _item_.[[Calendar]]). includes: [compareArray.js, temporalHelpers.js] features: [Temporal] --- 1146 -
argument-plaindatetime.js --- esid: sec-temporal.plaindatetime.from description: A PlainDateTime object is copied, not returned directly includes: [temporalHelpers.js] features: [Temporal] --- 889 -
argument-propertybag-calendar-case-insensitive.js --- esid: sec-temporal.plaindatetime.from description: The calendar name is case-insensitive includes: [temporalHelpers.js] features: [Temporal] --- 803 -
argument-propertybag-calendar-invalid-iso-string.js --- esid: sec-temporal.plaindatetime.from description: Invalid ISO string as calendar should throw RangeError features: [Temporal] --- 807 -
argument-propertybag-calendar-iso-string.js --- esid: sec-temporal.plaindatetime.from description: An ISO 8601 string can be converted to a calendar ID in Calendar includes: [temporalHelpers.js] features: [Temporal] --- 997 -
argument-propertybag-calendar-leap-second.js --- esid: sec-temporal.plaindatetime.from description: Leap second is a valid ISO string for a calendar in a property bag includes: [temporalHelpers.js] features: [Temporal] --- 728 -
argument-propertybag-calendar-string.js --- esid: sec-temporal.plaindatetime.from description: A calendar ID is valid input for Calendar includes: [temporalHelpers.js] features: [Temporal] --- 757 -
argument-propertybag-calendar-wrong-type.js --- esid: sec-temporal.plaindatetime.from description: > Appropriate error thrown when a calendar property from a property bag cannot be converted to a calendar ID features: [BigInt, Symbol, Temporal] --- 1009 -
argument-propertybag-calendar-year-zero.js --- esid: sec-temporal.plaindatetime.from description: Negative zero, as an extended year, is rejected features: [Temporal, arrow-function] --- 789 -
argument-propertybag-optional-properties.js --- esid: sec-temporal.plaindatetime.from description: > A property bag missing optional properties is equivalent to a property bag with all the optional properties having their default values features: [Temporal] --- 964 -
argument-string-calendar-annotation-invalid-key.js --- esid: sec-temporal.plaindatetime.from description: Annotation keys are lowercase-only features: [Temporal] --- 799 -
argument-string-calendar-annotation.js --- esid: sec-temporal.plaindatetime.from description: Various forms of calendar annotation; critical flag has no effect features: [Temporal] includes: [temporalHelpers.js] --- 1025 -
argument-string-calendar-invalid-iso-string.js --- esid: sec-temporal.plaindatetime.from description: Invalid calendar string should throw RangeError features: [Temporal] --- 669 -
argument-string-comma-decimal-separator.js --- esid: sec-temporal.plaindatetime.from description: Comma may be used as a decimal separator features: [Temporal] includes: [temporalHelpers.js] --- 576 -
argument-string-critical-unknown-annotation.js --- esid: sec-temporal.plaindatetime.from description: Unknown annotations with critical flag are rejected features: [Temporal] --- 831 -
argument-string-date-with-utc-offset.js --- esid: sec-temporal.plaindatetime.from description: UTC offset not valid with format that does not include a time features: [Temporal] includes: [temporalHelpers.js] --- 1250 -
argument-string-invalid.js --- esid: sec-temporal.plaindatetime.from description: Reject string argument if it cannot be parsed features: [Temporal] --- 1792 -
argument-string-limits.js --- esid: sec-temporal.plaindatetime.from description: ISO strings at the edges of the representable range features: [Temporal] --- 903 -
argument-string-minus-sign.js --- esid: sec-temporal.plaindatetime.from description: Non-ASCII minus sign is not acceptable features: [Temporal] --- 629 -
argument-string-multiple-calendar.js --- esid: sec-temporal.plaindatetime.from description: > More than one calendar annotation is not syntactical if any have the criical flag features: [Temporal] --- 1053 -
argument-string-multiple-time-zone.js --- esid: sec-temporal.plaindatetime.from description: More than one time zone annotation is not syntactical features: [Temporal] --- 777 -
argument-string-offset.js --- esid: sec-temporal.plaindatetime.from description: Extended format may be used features: [Temporal] includes: [temporalHelpers.js] --- 1090 -
argument-string-optional-data.js --- esid: sec-temporal.plaindatetime.from description: Some parts of a string argument may be omitted features: [Temporal] includes: [temporalHelpers.js] --- 932 -
argument-string-out-of-range.js --- esid: sec-temporal.plaindatetime.from description: Invalid ISO string not acceptable even with overflow = constrain features: [Temporal] --- 1103 -
argument-string-subsecond.js --- esid: sec-temporal.plaindatetime.from description: Up to nine digits of sub-second precision are acceptable features: [Temporal] includes: [temporalHelpers.js] --- 2421 -
argument-string-time-separators.js --- esid: sec-temporal.plaindatetime.from description: Time separator in string argument can vary features: [Temporal] includes: [temporalHelpers.js] --- 804 -
argument-string-time-zone-annotation.js --- esid: sec-temporal.plaindatetime.from description: Various forms of time zone annotation; critical flag has no effect features: [Temporal] includes: [temporalHelpers.js] --- 1214 -
argument-string-timezone.js --- esid: sec-temporal.plaindatetime.from description: Timezone, if specified, is ignored features: [Temporal] includes: [temporalHelpers.js] --- 587 -
argument-string-unknown-annotation.js --- esid: sec-temporal.plaindatetime.from description: Various forms of unknown annotation features: [Temporal] includes: [temporalHelpers.js] --- 1008 -
argument-string-with-utc-designator.js --- esid: sec-temporal.plaindatetime.from description: RangeError thrown if a string with UTC designator is used as a PlainDateTime features: [Temporal, arrow-function] --- 703 -
argument-string.js --- esid: sec-temporal.plaindatetime.from description: String arguments are acceptable features: [Temporal] includes: [temporalHelpers.js] --- 1107 -
argument-wrong-type.js --- esid: sec-temporal.plaindatetime.from description: > Appropriate error thrown when argument cannot be converted to a valid string or property bag for PlainDateTime features: [BigInt, Symbol, Temporal] --- 1993 -
argument-zoneddatetime-balance-negative-time-units.js --- esid: sec-temporal.plaindatetime.from description: Negative time fields are balanced upwards if the argument is given as ZonedDateTime info: | sec-temporal-balancetime steps 3–14: 3. Set _microsecond_ to _microsecond_ + floor(_nanosecond_ / 1000). 4. Set _nanosecond_ to _nanosecond_ modulo 1000. 5. Set _millisecond_ to _millisecond_ + floor(_microsecond_ / 1000). 6. Set _microsecond_ to _microsecond_ modulo 1000. 7. Set _second_ to _second_ + floor(_millisecond_ / 1000). 8. Set _millisecond_ to _millisecond_ modulo 1000. 9. Set _minute_ to _minute_ + floor(_second_ / 60). 10. Set _second_ to _second_ modulo 60. 11. Set _hour_ to _hour_ + floor(_minute_ / 60). 12. Set _minute_ to _minute_ modulo 60. 13. Let _days_ be floor(_hour_ / 24). 14. Set _hour_ to _hour_ modulo 24. sec-temporal-balanceisodatetime step 1: 1. Let _balancedTime_ be ? BalanceTime(_hour_, _minute_, _second_, _millisecond_, _microsecond_, _nanosecond_). sec-temporal-builtintimezonegetplaindatetimefor step 3: 3. Set _result_ to ? BalanceISODateTime(_result_.[[Year]], _result_.[[Month]], _result_.[[Day]], _result_.[[Hour]], _result_.[[Minute]], _result_.[[Second]], _result_.[[Millisecond]], _result_.[[Microsecond]], _result_.[[Nanosecond]] + _offsetNanoseconds_). sec-temporal-totemporaldatetime step 3.b: b. If _item_ has an [[InitializedTemporalZonedDateTime]] internal slot, then ... ii. 1. Return ? BuiltinTimeZoneGetPlainDateTimeFor(_item_.[[TimeZone]], _instant_, _item_.[[Calendar]]). sec-temporal.plaindatetime.from step 3: 3. Return ? ToTemporalDateTime(_temporalTime_). includes: [temporalHelpers.js] features: [Temporal] --- 2400 -
argument-zoneddatetime-negative-epochnanoseconds.js --- esid: sec-temporal.plaindatetime.from description: A pre-epoch value is handled correctly by the modulo operation in GetISOPartsFromEpoch info: | sec-temporal-getisopartsfromepoch step 1: 1. Let _remainderNs_ be the mathematical value whose sign is the sign of _epochNanoseconds_ and whose magnitude is abs(_epochNanoseconds_) modulo 10<sup>6</sup>. sec-temporal-builtintimezonegetplaindatetimefor step 2: 2. Let _result_ be ! GetISOPartsFromEpoch(_instant_.[[Nanoseconds]]). features: [Temporal] includes: [temporalHelpers.js] --- 1175 -
browser.js 0 -
builtin.js --- esid: sec-temporal.plaindatetime.from description: Tests that Temporal.PlainDateTime.from meets the requirements for built-in objects info: | Built-in functions that are not constructors do not have a "prototype" property unless otherwise specified in the description of a particular function. Unless specified otherwise, a built-in object that is callable as a function is a built-in function object with the characteristics described in 10.3. Unless specified otherwise, the [[Extensible]] internal slot of a built-in object initially has the value true. Unless otherwise specified every built-in function and every built-in constructor has the Function prototype object [...] as the value of its [[Prototype]] internal slot. features: [Temporal] --- 1501 -
calendar-temporal-object.js --- esid: sec-temporal.plaindatetime.from description: Fast path for converting other Temporal objects to Temporal.Calendar by reading internal slots info: | sec-temporal.plaindatetime.from step 3: 3. Return ? ToTemporalDateTime(_item_, _options_). sec-temporal-totemporaldatetime step 2.c: c. Let _calendar_ be ? GetTemporalCalendarWithISODefault(_item_). sec-temporal-gettemporalcalendarwithisodefault step 2: 2. Return ? ToTemporalCalendarWithISODefault(_calendar_). sec-temporal-totemporalcalendarwithisodefault step 2: 3. Return ? ToTemporalCalendar(_temporalCalendarLike_). sec-temporal-totemporalcalendar step 1.a: a. If _temporalCalendarLike_ has an [[InitializedTemporalDate]], [[InitializedTemporalDateTime]], [[InitializedTemporalMonthDay]], [[InitializedTemporalYearMonth]], or [[InitializedTemporalZonedDateTime]] internal slot, then i. Return _temporalCalendarLike_.[[Calendar]]. includes: [compareArray.js, temporalHelpers.js] features: [Temporal] --- 1547 -
calendarresolvefields-error-ordering.js --- esid: sec-temporal.plaindatetime.from description: CalendarResolveFields throws TypeError before RangeError info: | CalendarResolveFields validates field types before validating field ranges, ensuring TypeError is thrown before RangeError when both conditions exist. features: [Temporal] --- 2078 -
infinity-throws-rangeerror.js --- description: Throws if any value in the property bag is Infinity or -Infinity esid: sec-temporal.plaindatetime.from includes: [compareArray.js, temporalHelpers.js] features: [Temporal] --- 1314 -
leap-second.js --- esid: sec-temporal.plaindatetime.from description: Leap second is a valid ISO string for PlainDateTime includes: [temporalHelpers.js] features: [Temporal] --- 1349 -
length.js --- esid: sec-temporal.plaindatetime.from description: Temporal.PlainDateTime.from.length is 1 info: | Every built-in function object, including constructors, has a "length" property whose value is an integer. Unless otherwise specified, this value is equal to the largest number of named arguments shown in the subclause headings for the function description. Optional parameters (which are indicated with brackets: [ ]) or rest parameters (which are shown using the form «...name») are not included in the default argument count. Unless otherwise specified, the "length" property of a built-in function object has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }. includes: [propertyHelper.js] features: [Temporal] --- 1176 -
limits.js --- esid: sec-temporal.plaindatetime.from description: Checking limits of representable PlainDateTime features: [Temporal] includes: [temporalHelpers.js] --- 2107 -
month-code-wrong-type.js --- esid: sec-temporal.plaindatetime.from description: Month code must be a string features: [Temporal] --- 772 -
monthcode-invalid.js --- esid: sec-temporal.plaindatetime.from description: Validation of monthCode features: [Temporal] --- 1325 -
name.js --- esid: sec-temporal.plaindatetime.from description: Temporal.PlainDateTime.from.name is "from" info: | Every built-in function object, including constructors, that is not identified as an anonymous function has a "name" property whose value is a String. Unless otherwise specified, this value is the name that is given to the function in this specification. Unless otherwise specified, the "name" property of a built-in function object, if it exists, has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }. includes: [propertyHelper.js] features: [Temporal] --- 1011 -
negative-month-or-day.js --- esid: sec-temporal.plaindatetime.from description: Months and days must be non-negative integers features: [Temporal] --- 573 -
no-fractional-minutes-hours.js --- esid: sec-temporal.plaindatetime.from description: Fractional minutes or hours in time string should throw RangeError features: [Temporal] --- 707 -
not-a-constructor.js --- esid: sec-temporal.plaindatetime.from description: Temporal.PlainDateTime.from does not implement [[Construct]], is not new-able info: | Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. includes: [isConstructor.js] features: [Reflect.construct, Temporal] --- 886 -
observable-get-overflow-argument-primitive.js --- esid: sec-temporal.plaindatetime.from description: overflow property is extracted with string argument. includes: [compareArray.js, temporalHelpers.js] features: [Temporal] --- 1298 -
observable-get-overflow-argument-string-invalid.js --- esid: sec-temporal.plaindatetime.from description: overflow property is not extracted with ISO-invalid string argument. includes: [compareArray.js, temporalHelpers.js] features: [Temporal] --- 728 -
options-object.js --- esid: sec-temporal.plaindatetime.prototype.from description: Empty object may be used as options includes: [temporalHelpers.js] features: [Temporal] --- 802 -
options-read-before-algorithmic-validation.js --- esid: sec-temporal.plaindatetime.from description: > All options properties are read and cast before any algorithmic validation includes: [compareArray.js, temporalHelpers.js] features: [Temporal] --- 965 -
options-undefined.js --- esid: sec-temporal.plaindatetime.from description: Verify that undefined options are handled correctly. features: [Temporal] --- 699 -
options-wrong-type.js --- esid: sec-temporal.plaindatetime.from description: TypeError thrown when options argument is a primitive features: [BigInt, Symbol, Temporal] --- 1378 -
order-of-operations.js --- esid: sec-temporal.plaindatetime.from description: Properties on an object passed to from() are accessed in the correct order includes: [compareArray.js, temporalHelpers.js] features: [Temporal] --- 3016 -
overflow-default-constrain.js --- esid: sec-temporal.plaindatetime.from description: By default, overflow = constrain features: [Temporal] includes: [temporalHelpers.js] --- 1193 -
overflow-invalid-string.js --- esid: sec-temporal.plaindatetime.from description: RangeError thrown when overflow option not one of the allowed string values info: | sec-getoption step 10: 10. If _values_ is not *undefined* and _values_ does not contain an element equal to _value_, throw a *RangeError* exception. sec-temporal-totemporaloverflow step 1: 1. Return ? GetOption(_normalizedOptions_, *"overflow"*, « String », « *"constrain"*, *"reject"* », *"constrain"*). sec-temporal-interprettemporaldatetimefields steps 2–3: 2. Let _temporalDate_ be ? DateFromFields(_calendar_, _fields_, _options_). 3. Let _overflow_ be ? ToTemporalOverflow(_options_). sec-temporal-totemporaldatetime steps 2–3: 2. If Type(_item_) is Object, then ... g. Let _result_ be ? InterpretTemporalDateTimeFields(_calendar_, _fields_, _options_). 3. Else, a. Perform ? ToTemporalOverflow(_options_). sec-temporal.plaindatetime.from steps 2–3: 2. If Type(_item_) is Object and _item_ has an [[InitializedTemporalDateTime]] internal slot, then a. Perform ? ToTemporalOverflow(_options_). b. Return ... 3. Return ? ToTemporalDateTime(_item_, _options_). features: [Temporal] --- 2068 -
overflow-reject.js --- esid: sec-temporal.plaindatetime.from description: Possibly throw if overflow is reject features: [Temporal] includes: [temporalHelpers.js] --- 776 -
overflow-undefined.js --- esid: sec-temporal.plaindatetime.from description: Fallback value for overflow option info: | sec-getoption step 3: 3. If _value_ is *undefined*, return _fallback_. sec-temporal-totemporaloverflow step 1: 1. Return ? GetOption(_normalizedOptions_, *"overflow"*, « String », « *"constrain"*, *"reject"* », *"constrain"*). sec-temporal-interprettemporaldatetimefields steps 2–3: 2. Let _temporalDate_ be ? DateFromFields(_calendar_, _fields_, _options_). 3. Let _overflow_ be ? ToTemporalOverflow(_options_). sec-temporal-totemporaldatetime steps 2–3: 2. If Type(_item_) is Object, then ... g. Let _result_ be ? InterpretTemporalDateTimeFields(_calendar_, _fields_, _options_). 3. Else, a. Perform ? ToTemporalOverflow(_options_). sec-temporal.plaindatetime.from steps 2–3: 2. If Type(_item_) is Object and _item_ has an [[InitializedTemporalDateTime]] internal slot, then a. Perform ? ToTemporalOverflow(_options_). b. Return ... 3. Return ? ToTemporalDateTime(_item_, _options_). includes: [temporalHelpers.js] features: [Temporal] --- 2354 -
overflow-wrong-type.js --- esid: sec-temporal.plaindatetime.from description: Type conversions for overflow option info: | sec-getoption step 9.a: a. Set _value_ to ? ToString(_value_). sec-temporal-totemporaloverflow step 1: 1. Return ? GetOption(_normalizedOptions_, *"overflow"*, « String », « *"constrain"*, *"reject"* », *"constrain"*). sec-temporal-interprettemporaldatetimefields steps 2–3: 2. Let _temporalDate_ be ? DateFromFields(_calendar_, _fields_, _options_). 3. Let _overflow_ be ? ToTemporalOverflow(_options_). sec-temporal-totemporaldatetime steps 2–3: 2. If Type(_item_) is Object, then ... g. Let _result_ be ? InterpretTemporalDateTimeFields(_calendar_, _fields_, _options_). 3. Else, a. Perform ? ToTemporalOverflow(_options_). sec-temporal.plaindatetime.from steps 2–3: 2. If Type(_item_) is Object and _item_ has an [[InitializedTemporalDateTime]] internal slot, then a. Perform ? ToTemporalOverflow(_options_). b. Return ... 3. Return ? ToTemporalDateTime(_item_, _options_). includes: [compareArray.js, temporalHelpers.js] features: [Temporal] --- 3322 -
parser.js --- description: Temporal.PlainDateTime.from accepts a custom timezone that starts with "c". esid: sec-temporal.plaindatetime.from includes: [temporalHelpers.js] features: [Temporal] --- 607 -
prop-desc.js --- esid: sec-temporal.plaindatetime.from description: The "from" property of Temporal.PlainDateTime includes: [propertyHelper.js] features: [Temporal] --- 643 -
roundtrip-from-property-bag.js --- esid: sec-temporal.plaindatetime.from description: > Check that various dates created from a property bag have the expected properties includes: [temporalHelpers.js] features: [Temporal, Intl.Era-monthcode] --- 1570 -
roundtrip-from-string.js --- esid: sec-temporal.plaindatetime.from description: > Check that various dates created from a RFC 9557 string have the expected properties includes: [temporalHelpers.js] features: [Temporal, Intl.Era-monthcode] --- 845 -
shell.js --- description: | Test if a given function is a constructor function. defines: [isConstructor] features: [Reflect.construct] --- 596 -
subclassing-ignored.js --- esid: sec-temporal.plaindatetime.from description: The receiver is never called when calling from() includes: [temporalHelpers.js] features: [Temporal] --- 641 -
year-zero.js --- esid: sec-temporal.plaindatetime.from description: Negative zero, as an extended year, is rejected features: [Temporal, arrow-function] --- 707 -