@@ -1276,7 +1276,7 @@ <h1>DifferenceZonedDateTime ( _ns1_, _ns2_, _timeZone_, _calendar_, _largestUnit
1276
1276
1. Let _intermediateNs_ be ? AddZonedDateTime(_ns1_ , _timeZone_ , _calendar_ , _dateDifference_ .[[Years]], _dateDifference_ .[[Months]], _dateDifference_ .[[Weeks]], 0, 0, 0, 0, 0, 0, 0).
1277
1277
1. Let _timeRemainderNs_ be _ns2_ − _intermediateNs_ .
1278
1278
1. Let _intermediate_ be ! CreateTemporalZonedDateTime(_intermediateNs_ , _timeZone_ , _calendar_ ).
1279
- 1. Let _result_ be ? NanosecondsToDays(_timeRemainderNs_ , _intermediate_ ).
1279
+ 1. Let _result_ be ? NanosecondsToDays(ℝ( _timeRemainderNs_ ) , _intermediate_ ).
1280
1280
1. Let _timeDifference_ be ! BalanceDuration(0, 0, 0, 0, 0, 0, _result_ .[[Nanoseconds]], *"hour"* ).
1281
1281
1. Return ! CreateDurationRecord(_dateDifference_ .[[Years]], _dateDifference_ .[[Months]], _dateDifference_ .[[Weeks]], _result_ .[[Days]], _timeDifference_ .[[Hours]], _timeDifference_ .[[Minutes]], _timeDifference_ .[[Seconds]], _timeDifference_ .[[Milliseconds]], _timeDifference_ .[[Microseconds]], _timeDifference_ .[[Nanoseconds]]).
1282
1282
</emu-alg >
@@ -1285,7 +1285,7 @@ <h1>DifferenceZonedDateTime ( _ns1_, _ns2_, _timeZone_, _calendar_, _largestUnit
1285
1285
<emu-clause id =" sec-temporal-nanosecondstodays" type =" abstract operation" >
1286
1286
<h1 >
1287
1287
NanosecondsToDays (
1288
- _nanoseconds_ : a BigInt value ,
1288
+ _nanoseconds_ : an integer ,
1289
1289
_relativeTo_ : *undefined* , a Temporal.PlainDate, or a Temporal.ZonedDateTime,
1290
1290
)
1291
1291
</h1 >
@@ -1298,8 +1298,6 @@ <h1>
1298
1298
</dd >
1299
1299
</dl >
1300
1300
<emu-alg >
1301
- 1. Assert: Type(_nanoseconds_ ) is BigInt.
1302
- 1. Set _nanoseconds_ to ℝ(_nanoseconds_ ).
1303
1301
1. Let _dayLengthNs_ be 8.64 × 10<sup >13</sup >.
1304
1302
1. If _nanoseconds_ = 0, then
1305
1303
1. Return the Record { [[Days]]: 0, [[Nanoseconds]]: 0, [[DayLength]]: _dayLengthNs_ }.
0 commit comments