@@ -1084,6 +1084,7 @@ <h1>
1084
1084
</dd >
1085
1085
</dl >
1086
1086
<emu-alg >
1087
+ 1. Assert: IsValidEpochNanoseconds(_epochNanoseconds_ ) is *true* .
1087
1088
1. If DateDurationSign(_duration_ .[[Date]]) = 0, then
1088
1089
1. Return ? AddInstant(_epochNanoseconds_ , _duration_ .[[Time]]).
1089
1090
1. Let _isoDateTime_ be GetISODateTimeFor(_timeZone_ , _epochNanoseconds_ ).
@@ -1112,6 +1113,8 @@ <h1>
1112
1113
</dd >
1113
1114
</dl >
1114
1115
<emu-alg >
1116
+ 1. Assert: IsValidEpochNanoseconds(_ns1_ ) is *true* .
1117
+ 1. Assert: IsValidEpochNanoseconds(_ns2_ ) is *true* .
1115
1118
1. If _ns1_ = _ns2_ , return ! CombineDateAndTimeDuration(ZeroDateDuration(), 0).
1116
1119
1. Let _startDateTime_ be GetISODateTimeFor(_timeZone_ , _ns1_ ).
1117
1120
1. Let _endDateTime_ be GetISODateTimeFor(_timeZone_ , _ns2_ ).
@@ -1155,6 +1158,8 @@ <h1>
1155
1158
<dd ></dd >
1156
1159
</dl >
1157
1160
<emu-alg >
1161
+ 1. Assert: IsValidEpochNanoseconds(_ns1_ ) is *true* .
1162
+ 1. Assert: IsValidEpochNanoseconds(_ns2_ ) is *true* .
1158
1163
1. If TemporalUnitCategory(_largestUnit_ ) is ~time~ , then
1159
1164
1. Return DifferenceInstant(_ns1_ , _ns2_ , _roundingIncrement_ , _smallestUnit_ , _roundingMode_ ).
1160
1165
1. Let _difference_ be ? DifferenceZonedDateTime(_ns1_ , _ns2_ , _timeZone_ , _calendar_ , _largestUnit_ ).
@@ -1179,6 +1184,8 @@ <h1>
1179
1184
<dd ></dd >
1180
1185
</dl >
1181
1186
<emu-alg >
1187
+ 1. Assert: IsValidEpochNanoseconds(_ns1_ ) is *true* .
1188
+ 1. Assert: IsValidEpochNanoseconds(_ns2_ ) is *true* .
1182
1189
1. If TemporalUnitCategory(_unit_ ) is ~time~ , then
1183
1190
1. Let _difference_ be TimeDurationFromEpochNanosecondsDifference(_ns2_ , _ns1_ ).
1184
1191
1. Return TotalTimeDuration(_difference_ , _unit_ ).
0 commit comments