Skip to content

Commit

Permalink
Rename PlainTime and PlainDateTime internal time slots to ISO
Browse files Browse the repository at this point in the history
See: #522
  • Loading branch information
ptomato committed Nov 16, 2020
1 parent e747caf commit 8bcc2ac
Show file tree
Hide file tree
Showing 6 changed files with 95 additions and 95 deletions.
2 changes: 1 addition & 1 deletion spec/instant.html
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ <h1>TemporalInstantToString ( _instant_, _timeZone_, _precision_ )</h1>
1. Set _outputTimeZone_ to ? CreateTemporalTimeZone(*"UTC"*).
1. Let _isoCalendar_ be ? GetISO8601Calendar().
1. Let _dateTime_ be ? GetTemporalDateTimeFor(_timeZone_, _instant_, _isoCalendar_).
1. Let _dateTimeString_ be ? TemporalDateTimeToString(_dateTime_.[[ISOYear]], _dateTime_.[[ISOMonth]], _dateTime_.[[ISODay]], _dateTime_.[[Hour]], _dateTime_.[[Minute]], _dateTime_.[[Second]], _dateTime_.[[Millisecond]], _dateTime_.[[Microsecond]], _dateTime_.[[Nanosecond]], *undefined*, _precision_, *"never"*).
1. Let _dateTimeString_ be ? TemporalDateTimeToString(_dateTime_.[[ISOYear]], _dateTime_.[[ISOMonth]], _dateTime_.[[ISODay]], _dateTime_.[[ISOHour]], _dateTime_.[[ISOMinute]], _dateTime_.[[ISOSecond]], _dateTime_.[[ISOMillisecond]], _dateTime_.[[ISOMicrosecond]], _dateTime_.[[ISONanosecond]], *undefined*, _precision_, *"never"*).
1. If _timeZone_ is *undefined*, then
1. Let _timeZoneString_ be *"Z"*.
1. Else,
Expand Down
6 changes: 3 additions & 3 deletions spec/plaindate.html
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,8 @@ <h1>Temporal.PlainDate.prototype.toPlainDateTime ( [ _temporalTime_ ] )</h1>
1. Return ? CreateTemporalDateTime(_temporalDate_.[[ISOYear]], _temporalDate_.[[ISOMonth]], _temporalDate_.[[ISODay]], 0, 0, 0, 0, 0, 0, _temporalDate_.[[Calendar]]).
1. Set _temporalTime_ to ? ToTemporalTime(_temporalTime_).
1. Return ? CreateTemporalDateTime(_temporalDate_.[[ISOYear]], _temporalDate_.[[ISOMonth]], _temporalDate_.[[ISODay]],
_temporalTime_.[[Hour]], _temporalTime_.[[Minute]], _temporalTime_.[[Second]],
_temporalTime_.[[Millisecond]], _temporalTime_.[[Microsecond]], _temporalTime_.[[Nanosecond]],
_temporalTime_.[[ISOHour]], _temporalTime_.[[ISOMinute]], _temporalTime_.[[ISOSecond]],
_temporalTime_.[[ISOMillisecond]], _temporalTime_.[[ISOMicrosecond]], _temporalTime_.[[ISONanosecond]],
_temporalDate_.[[Calendar]]).
</emu-alg>
</emu-clause>
Expand Down Expand Up @@ -564,7 +564,7 @@ <h1>Temporal.PlainDate.prototype.toZonedDateTime ( _item_ )</h1>
1. Let _temporalDateTime_ be ? CreateTemporalDateTime(_temporalDate_.[[ISOYear]], _temporalDate_.[[ISOMonth]], _temporalDate_.[[ISODay]], 0, 0, 0, 0, 0, 0, _temporalDate_.[[Calendar]]).
1. Else,
1. Set _temporalTime_ to ? ToTemporalTime(_temporalTime_).
1. Let _temporalDateTime_ be ? CreateTemporalDateTime(_temporalDate_.[[ISOYear]], _temporalDate_.[[ISOMonth]], _temporalDate_.[[ISODay]], _temporalTime_.[[Hour]], _temporalTime_.[[Minute]], _temporalTime_.[[Second]], _temporalTime_.[[Millisecond]], _temporalTime_.[[Microsecond]], _temporalTime_.[[Nanosecond]], _temporalDate_.[[Calendar]]).
1. Let _temporalDateTime_ be ? CreateTemporalDateTime(_temporalDate_.[[ISOYear]], _temporalDate_.[[ISOMonth]], _temporalDate_.[[ISODay]], _temporalTime_.[[ISOHour]], _temporalTime_.[[ISOMinute]], _temporalTime_.[[ISOSecond]], _temporalTime_.[[ISOMillisecond]], _temporalTime_.[[ISOMicrosecond]], _temporalTime_.[[ISONanosecond]], _temporalDate_.[[Calendar]]).
1. Let _instant_ be ? GetTemporalInstantFor(_timeZone_, _temporalDateTime_, *"compatible"*).
1. Return ? CreateTemporalZonedDateTime(_instant_.[[Nanoseconds]], _timeZone_, _temporalDate_.[[Calendar]]).
</emu-alg>
Expand Down
76 changes: 38 additions & 38 deletions spec/plaindatetime.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h1>Temporal.PlainDateTime.from ( _item_ [ , _options_ ] )</h1>
1. Set _options_ to ? NormalizeOptionsObject(_options_).
1. Let _overflow_ be ? ToTemporalOverflow(_options_).
1. If Type(_item_) is Object and _item_ has an [[InitializedTemporalDateTime]] internal slot, then
1. Return ? CreateTemporalDateTimeFromStatic(_constructor_, _item_.[[ISOYear]], _item_.[[ISOMonth]], _item_.[[ISODay]], _item_.[[Hour]], _item_.[[Minute]], _item_.[[Second]], _item_.[[Millisecond]], _item_.[[Microsecond]], _item_.[[Nanosecond]], _item_.[[Calendar]]).
1. Return ? CreateTemporalDateTimeFromStatic(_constructor_, _item_.[[ISOYear]], _item_.[[ISOMonth]], _item_.[[ISODay]], _item_.[[ISOHour]], _item_.[[ISOMinute]], _item_.[[ISOSecond]], _item_.[[ISOMillisecond]], _item_.[[ISOMicrosecond]], _item_.[[ISONanosecond]], _item_.[[Calendar]]).
1. Return ? ToTemporalDateTime(_item_, _constructor_, _overflow_).
</emu-alg>
</emu-clause>
Expand All @@ -93,7 +93,7 @@ <h1>Temporal.PlainDateTime.compare ( _one_, _two_ )</h1>
<emu-alg>
1. Set _one_ to ? ToTemporalDateTime(_one_).
1. Set _two_ to ? ToTemporalDateTime(_two_).
1. Let _result_ be ! CompareTemporalDateTime(_one_.[[ISOYear]], _one_.[[ISOMonth]], _one_.[[ISODay]], _one_.[[Hour]], _one_.[[Minute]], _one_.[[Second]], _one_.[[Millisecond]], _one_.[[Microsecond]], _one_.[[Nanosecond]], _two_.[[ISOYear]], _two_.[[ISOMonth]], _two_.[[ISODay]], _two_.[[Hour]], _two_.[[Minute]], _two_.[[Second]], _two_.[[Millisecond]], _two_.[[Microsecond]], _two_.[[Nanosecond]]).
1. Let _result_ be ! CompareTemporalDateTime(_one_.[[ISOYear]], _one_.[[ISOMonth]], _one_.[[ISODay]], _one_.[[ISOHour]], _one_.[[ISOMinute]], _one_.[[ISOSecond]], _one_.[[ISOMillisecond]], _one_.[[ISOMicrosecond]], _one_.[[ISONanosecond]], _two_.[[ISOYear]], _two_.[[ISOMonth]], _two_.[[ISODay]], _two_.[[ISOHour]], _two_.[[ISOMinute]], _two_.[[ISOSecond]], _two_.[[ISOMillisecond]], _two_.[[ISOMicrosecond]], _two_.[[ISONanosecond]]).
1. If _result_ ≠ 0, then
1. Return 𝔽(_result_).
1. Return 𝔽(? CompareCalendar(_one_.[[Calendar]], _two_.[[Calendar]])).
Expand Down Expand Up @@ -194,7 +194,7 @@ <h1>get Temporal.PlainDateTime.prototype.hour</h1>
<emu-alg>
1. Let _dateTime_ be the *this* value.
1. Perform ? RequireInternalSlot(_dateTime_, [[InitializedTemporalDateTime]]).
1. Return _dateTime_.[[Hour]].
1. Return 𝔽(_dateTime_.[[ISOHour]]).
</emu-alg>
</emu-clause>

Expand All @@ -207,7 +207,7 @@ <h1>get Temporal.PlainDateTime.prototype.minute</h1>
<emu-alg>
1. Let _dateTime_ be the *this* value.
1. Perform ? RequireInternalSlot(_dateTime_, [[InitializedTemporalDateTime]]).
1. Return _dateTime_.[[Minute]].
1. Return 𝔽(_dateTime_.[[ISOMinute]]).
</emu-alg>
</emu-clause>

Expand All @@ -220,7 +220,7 @@ <h1>get Temporal.PlainDateTime.prototype.second</h1>
<emu-alg>
1. Let _dateTime_ be the *this* value.
1. Perform ? RequireInternalSlot(_dateTime_, [[InitializedTemporalDateTime]]).
1. Return _dateTime_.[[Second]].
1. Return 𝔽(_dateTime_.[[ISOSecond]]).
</emu-alg>
</emu-clause>

Expand All @@ -233,7 +233,7 @@ <h1>get Temporal.PlainDateTime.prototype.millisecond</h1>
<emu-alg>
1. Let _dateTime_ be the *this* value.
1. Perform ? RequireInternalSlot(_dateTime_, [[InitializedTemporalDateTime]]).
1. Return _dateTime_.[[Millisecond]].
1. Return 𝔽(_dateTime_.[[ISOMillisecond]]).
</emu-alg>
</emu-clause>

Expand All @@ -246,7 +246,7 @@ <h1>get Temporal.PlainDateTime.prototype.microsecond</h1>
<emu-alg>
1. Let _dateTime_ be the *this* value.
1. Perform ? RequireInternalSlot(_dateTime_, [[InitializedTemporalDateTime]]).
1. Return _dateTime_.[[Microsecond]].
1. Return 𝔽(_dateTime_.[[ISOMicrosecond]]).
</emu-alg>
</emu-clause>

Expand All @@ -259,7 +259,7 @@ <h1>get Temporal.PlainDateTime.prototype.nanosecond</h1>
<emu-alg>
1. Let _dateTime_ be the *this* value.
1. Perform ? RequireInternalSlot(_dateTime_, [[InitializedTemporalDateTime]]).
1. Return _dateTime_.[[Nanosecond]].
1. Return 𝔽(_dateTime_.[[ISONanosecond]]).
</emu-alg>
</emu-clause>

Expand Down Expand Up @@ -572,7 +572,7 @@ <h1>Temporal.PlainDateTime.prototype.round ( _options_ )</h1>
1. Let _smallestUnit_ be ? ToSmallestTemporalUnit(_options_, « »).
1. Let _roundingMode_ be ? ToTemporalRoundingMode(_options_, *"nearest"*).
1. Let _roundingIncrement_ be ? ToTemporalDateTimeRoundingIncrement(_options_, _smallestUnit_).
1. Let _result_ be ? RoundDateTime(_dateTime_.[[ISOYear]], _dateTime_.[[ISOMonth]], _dateTime_.[[ISODay]], _dateTime_.[[Hour]], _dateTime_.[[Minute]], _dateTime_.[[Second]], _dateTime_.[[Millisecond]], _dateTime_.[[Microsecond]], _dateTime_.[[Nanosecond]], _roundingIncrement_, _smallestUnit_, _roundingMode_).
1. Let _result_ be ? RoundDateTime(_dateTime_.[[ISOYear]], _dateTime_.[[ISOMonth]], _dateTime_.[[ISODay]], _dateTime_.[[ISOHour]], _dateTime_.[[ISOMinute]], _dateTime_.[[ISOSecond]], _dateTime_.[[ISOMillisecond]], _dateTime_.[[ISOMicrosecond]], _dateTime_.[[ISONanosecond]], _roundingIncrement_, _smallestUnit_, _roundingMode_).
1. Return ? CreateTemporalDateTimeFromInstance(_dateTime_, _result_.[[Year]], _result_.[[Month]], _result_.[[Day]], _result_.[[Hour]], _result_.[[Minute]], _result_.[[Second]], _result_.[[Millisecond]], _result_.[[Microsecond]], _result_.[[Nanosecond]], _dateTime_.[[Calendar]]).
</emu-alg>
</emu-clause>
Expand All @@ -590,12 +590,12 @@ <h1>Temporal.PlainDateTime.prototype.equals ( _other_ )</h1>
1. If _dateTime_.[[ISOYear]] ≠ _other_.[[ISOYear]], return *false*.
1. If _dateTime_.[[ISOMonth]] ≠ _other_.[[ISOMonth]], return *false*.
1. If _dateTime_.[[ISODay]] ≠ _other_.[[ISODay]], return *false*.
1. If _dateTime_.[[Hour]] ≠ _other_.[[Hour]], return *false*.
1. If _dateTime_.[[Minute]] ≠ _other_.[[Minute]], return *false*.
1. If _dateTime_.[[Second]] ≠ _other_.[[Second]], return *false*.
1. If _dateTime_.[[Millisecond]] ≠ _other_.[[Millisecond]], return *false*.
1. If _dateTime_.[[Microsecond]] ≠ _other_.[[Microsecond]], return *false*.
1. If _dateTime_.[[Nanosecond]] ≠ _other_.[[Nanosecond]], return *false*.
1. If _dateTime_.[[ISOHour]] ≠ _other_.[[ISOHour]], return *false*.
1. If _dateTime_.[[ISOMinute]] ≠ _other_.[[ISOMinute]], return *false*.
1. If _dateTime_.[[ISOSecond]] ≠ _other_.[[ISOSecond]], return *false*.
1. If _dateTime_.[[ISOMillisecond]] ≠ _other_.[[ISOMillisecond]], return *false*.
1. If _dateTime_.[[ISOMicrosecond]] ≠ _other_.[[ISOMicrosecond]], return *false*.
1. If _dateTime_.[[ISONanosecond]] ≠ _other_.[[ISONanosecond]], return *false*.
1. Return ? CalendarEquals(_dateTime_.[[Calendar]], _other_.[[Calendar]]).
</emu-alg>
</emu-clause>
Expand All @@ -613,7 +613,7 @@ <h1>Temporal.PlainDateTime.prototype.toString ( [ _options_ ] )</h1>
1. Let _precision_ be ? ToSecondsStringPrecision(_options_).
1. Let _roundingMode_ be ? ToTemporalRoundingMode(_options_, *"trunc"*).
1. Let _showCalendar_ be ? ToShowCalendarOption(_options_).
1. Let _result_ be ? RoundDateTime(_dateTime_.[[ISOYear]], _dateTime_.[[ISOMonth]], _dateTime_.[[ISODay]], _dateTime_.[[Hour]], _dateTime_.[[Minute]], _dateTime_.[[Second]], _dateTime_.[[Millisecond]], _dateTime_.[[Microsecond]], _dateTime_.[[Nanosecond]], _precision_.[[Increment]], _precision_.[[Unit]], _roundingMode_).
1. Let _result_ be ? RoundDateTime(_dateTime_.[[ISOYear]], _dateTime_.[[ISOMonth]], _dateTime_.[[ISODay]], _dateTime_.[[ISOHour]], _dateTime_.[[ISOMinute]], _dateTime_.[[ISOSecond]], _dateTime_.[[ISOMillisecond]], _dateTime_.[[ISOMicrosecond]], _dateTime_.[[ISONanosecond]], _precision_.[[Increment]], _precision_.[[Unit]], _roundingMode_).
1. Return ? TemporalDateTimeToString(_result_.[[Year]], _result_.[[Month]], _result_.[[Day]], _result_.[[Hour]], _result_.[[Minute]], _result_.[[Second]], _result_.[[Millisecond]], _result_.[[Microsecond]], _result_.[[Nanosecond]], _dateTime_.[[Calendar]], _precision_.[[Precision]], _showCalendar_).
</emu-alg>
</emu-clause>
Expand All @@ -628,7 +628,7 @@ <h1>Temporal.PlainDateTime.prototype.toLocaleString ( [ _locales_ [ , _options_
1. Let _dateTime_ be the *this* value.
1. Perform ? RequireInternalSlot(_dateTime_, [[InitializedTemporalDateTime]]).
1. If the implementation does not include the ECMA-402 Internationalization API, then
1. Return ? TemporalDateTimeToString(_dateTime_.[[ISOYear]], _dateTime_.[[ISOMonth]], _dateTime_.[[ISODay]], _dateTime_.[[Hour]], _dateTime_.[[Minute]], _dateTime_.[[Second]], _dateTime_.[[Millisecond]], _dateTime_.[[Microsecond]], _dateTime_.[[Nanosecond]], _dateTime_.[[Calendar]], *"auto"*, *"auto"*).
1. Return ? TemporalDateTimeToString(_dateTime_.[[ISOYear]], _dateTime_.[[ISOMonth]], _dateTime_.[[ISODay]], _dateTime_.[[ISOHour]], _dateTime_.[[ISOMinute]], _dateTime_.[[ISOSecond]], _dateTime_.[[ISOMillisecond]], _dateTime_.[[ISOMicrosecond]], _dateTime_.[[ISONanosecond]], _dateTime_.[[Calendar]], *"auto"*, *"auto"*).
1. Let _dateFormat_ be ? Construct(%DateTimeFormat%, « _locales_, _options_ »).
1. Return ? FormatDateTime(_dateFormat_, _dateTime_).
</emu-alg>
Expand All @@ -642,7 +642,7 @@ <h1>Temporal.PlainDateTime.prototype.toJSON ( )</h1>
<emu-alg>
1. Let _dateTime_ be the *this* value.
1. Perform ? RequireInternalSlot(_dateTime_, [[InitializedTemporalDateTime]]).
1. Return ? TemporalDateTimeToString(_dateTime_.[[ISOYear]], _dateTime_.[[ISOMonth]], _dateTime_.[[ISODay]], _dateTime_.[[Hour]], _dateTime_.[[Minute]], _dateTime_.[[Second]], _dateTime_.[[Millisecond]], _dateTime_.[[Microsecond]], _dateTime_.[[Nanosecond]], _dateTime_.[[Calendar]], *"auto"*, *"auto"*).
1. Return ? TemporalDateTimeToString(_dateTime_.[[ISOYear]], _dateTime_.[[ISOMonth]], _dateTime_.[[ISODay]], _dateTime_.[[ISOHour]], _dateTime_.[[ISOMinute]], _dateTime_.[[ISOSecond]], _dateTime_.[[ISOMillisecond]], _dateTime_.[[ISOMicrosecond]], _dateTime_.[[ISONanosecond]], _dateTime_.[[Calendar]], *"auto"*, *"auto"*).
</emu-alg>
</emu-clause>

Expand Down Expand Up @@ -723,7 +723,7 @@ <h1>Temporal.PlainDateTime.prototype.toPlainTime ( )</h1>
<emu-alg>
1. Let _dateTime_ be the *this* value.
1. Perform ? RequireInternalSlot(_dateTime_, [[InitializedTemporalDateTime]]).
1. Return ? CreateTemporalTime(_dateTime_.[[Hour]], _dateTime_.[[Minute]], _dateTime_.[[Second]], _dateTime_.[[Millisecond]], _dateTime_.[[Microsecond]], _dateTime_.[[Nanosecond]]).
1. Return ? CreateTemporalTime(_dateTime_.[[ISOHour]], _dateTime_.[[ISOMinute]], _dateTime_.[[ISOSecond]], _dateTime_.[[ISOMillisecond]], _dateTime_.[[ISOMicrosecond]], _dateTime_.[[ISONanosecond]]).
</emu-alg>
</emu-clause>

Expand Down Expand Up @@ -753,15 +753,15 @@ <h1>Temporal.PlainDateTime.prototype.getISOFields ( )</h1>
1. Perform ? RequireInternalSlot(_dateTime_, [[InitializedTemporalDateTime]]).
1. Let _fields_ be ? ObjectCreate(%ObjectPrototype%).
1. Perform ! CreateDataPropertyOrThrow(_fields_, *"calendar"*, _dateTime_.[[Calendar]]).
1. Perform ! CreateDataPropertyOrThrow(_fields_, *"hour"*, 𝔽(_dateTime_.[[Hour]])).
1. Perform ! CreateDataPropertyOrThrow(_fields_, *"isoDay"*, 𝔽(_dateTime_.[[ISODay]])).
1. Perform ! CreateDataPropertyOrThrow(_fields_, *"isoHour"*, 𝔽(_dateTime_.[[ISOHour]])).
1. Perform ! CreateDataPropertyOrThrow(_fields_, *"isoMonth"*, 𝔽(_dateTime_.[[ISOMonth]])).
1. Perform ! CreateDataPropertyOrThrow(_fields_, *"isoMicrosecond"*, 𝔽(_dateTime_.[[ISOMicrosecond]])).
1. Perform ! CreateDataPropertyOrThrow(_fields_, *"isoMillisecond"*, 𝔽(_dateTime_.[[ISOMillisecond]])).
1. Perform ! CreateDataPropertyOrThrow(_fields_, *"isoMinute"*, 𝔽(_dateTime_.[[ISOMinute]])).
1. Perform ! CreateDataPropertyOrThrow(_fields_, *"isoNanosecond"*, 𝔽(_dateTime_.[[ISONanosecond]])).
1. Perform ! CreateDataPropertyOrThrow(_fields_, *"isoSecond"*, 𝔽(_dateTime_.[[Second]])).
1. Perform ! CreateDataPropertyOrThrow(_fields_, *"isoYear"*, 𝔽(_dateTime_.[[ISOYear]])).
1. Perform ! CreateDataPropertyOrThrow(_fields_, *"microsecond"*, 𝔽(_dateTime_.[[Microsecond]])).
1. Perform ! CreateDataPropertyOrThrow(_fields_, *"millisecond"*, 𝔽(_dateTime_.[[Millisecond]])).
1. Perform ! CreateDataPropertyOrThrow(_fields_, *"minute"*, 𝔽(_dateTime_.[[Minute]])).
1. Perform ! CreateDataPropertyOrThrow(_fields_, *"nanosecond"*, 𝔽(_dateTime_.[[Nanosecond]])).
1. Perform ! CreateDataPropertyOrThrow(_fields_, *"second"*, 𝔽(_dateTime_.[[Second]])).
1. Return _fields_.
</emu-alg>
</emu-clause>
Expand Down Expand Up @@ -818,47 +818,47 @@ <h1>Properties of Temporal.PlainDateTime Instances</h1>
</tr>
<tr>
<td>
[[Hour]]
[[ISOHour]]
</td>
<td>
An integer Number value between 0 and 23, inclusive, representing the hour of the day.
</td>
</tr>
<tr>
<td>
[[Minute]]
[[ISOMinute]]
</td>
<td>
An integer Number value between 0 and 59, inclusive, representing the minute of the hour.
</td>
</tr>
<tr>
<td>
[[Second]]
[[ISOSecond]]
</td>
<td>
An integer Number value between 0 and 59, inclusive, representing the second within the minute.
</td>
</tr>
<tr>
<td>
[[Millisecond]]
[[ISOMillisecond]]
</td>
<td>
An integer Number value between 0 and 999, inclusive, representing the millisecond within the second.
</td>
</tr>
<tr>
<td>
[[Microsecond]]
[[ISOMicrosecond]]
</td>
<td>
An integer Number value between 0 and 999, inclusive, representing the microsecond within the millisecond.
</td>
</tr>
<tr>
<td>
[[Nanosecond]]
[[ISONanosecond]]
</td>
<td>
An integer Number value between 0 and 999, inclusive, representing the nanosecond within the microsecond.
Expand Down Expand Up @@ -1077,16 +1077,16 @@ <h1>CreateTemporalDateTime ( _isoYear_, _isoMonth_, _isoDay_, _hour_, _minute_,
1. If ! DateTimeWithinLimits(_isoYear_, _isoMonth_, _isoDay_, _hour_, _minute_, _second_, _millisecond_, _microsecond_, _nanosecond_) is not ~in range~, then
1. Throw a *RangeError* exception.
1. If _newTarget_ is not given, set it to %Temporal.PlainDateTime%.
1. Let _object_ be ? OrdinaryCreateFromConstructor(_newTarget_, *"%Temporal.PlainDateTime.prototype%"*, « [[InitializedTemporalDateTime]], [[ISOYear]], [[ISOMonth]], [[ISODay]], [[Hour]], [[Minute]], [[Second]], [[Millisecond]], [[Microsecond]], [[Nanosecond]], [[Calendar]] »).
1. Let _object_ be ? OrdinaryCreateFromConstructor(_newTarget_, *"%Temporal.PlainDateTime.prototype%"*, « [[InitializedTemporalDateTime]], [[ISOYear]], [[ISOMonth]], [[ISODay]], [[ISOHour]], [[ISOMinute]], [[ISOSecond]], [[ISOMillisecond]], [[ISOMicrosecond]], [[ISONanosecond]], [[Calendar]] »).
1. Set _object_.[[ISOYear]] to _isoYear_.
1. Set _object_.[[ISOMonth]] to _isoMonth_.
1. Set _object_.[[ISODay]] to _isoDay_.
1. Set _object_.[[Hour]] to _hour_.
1. Set _object_.[[Minute]] to _minute_.
1. Set _object_.[[Second]] to _second_.
1. Set _object_.[[Millisecond]] to _millisecond_.
1. Set _object_.[[Microsecond]] to _microsecond_.
1. Set _object_.[[Nanosecond]] to _nanosecond_.
1. Set _object_.[[ISOHour]] to _hour_.
1. Set _object_.[[ISOMinute]] to _minute_.
1. Set _object_.[[ISOSecond]] to _second_.
1. Set _object_.[[ISOMillisecond]] to _millisecond_.
1. Set _object_.[[ISOMicrosecond]] to _microsecond_.
1. Set _object_.[[ISONanosecond]] to _nanosecond_.
1. Set _object_.[[Calendar]] to _calendar_.
1. Return _object_.
</emu-alg>
Expand Down
Loading

0 comments on commit 8bcc2ac

Please sign in to comment.