1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:07:34 +00:00

LibJS: Update spec comment in get_iso_parts_from_epoch()

This is a normative change in the Temporal spec.

See: bdf60f5
This commit is contained in:
Linus Groh 2021-12-18 17:29:47 +00:00
parent 4b7f716f21
commit b70a55bd5a

View file

@ -120,7 +120,7 @@ ISODateTime get_iso_parts_from_epoch(BigInt const& epoch_nanoseconds)
{
// 1. Assert: epochNanoseconds is an integer.
// 2. Let remainderNs be remainder(epochNanoseconds, 10^6).
// 2. Let remainderNs be epochNanoseconds modulo 10^6.
auto remainder_ns_bigint = epoch_nanoseconds.big_integer().divided_by(Crypto::UnsignedBigInteger { 1'000'000 }).remainder;
auto remainder_ns = remainder_ns_bigint.to_double();