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