mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:57:35 +00:00
LibJS: Add thousands separators to nanoseconds multiplier value
Increases readability. Thanks to @nico for noticing this!
This commit is contained in:
parent
6319796f58
commit
b180e154aa
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ BigInt* system_utc_epoch_nanoseconds(GlobalObject& global_object)
|
|||
clock_gettime(CLOCK_REALTIME, &now);
|
||||
Checked<i64> ns_timestamp;
|
||||
ns_timestamp += now.tv_sec;
|
||||
ns_timestamp *= 1000000000;
|
||||
ns_timestamp *= 1'000'000'000;
|
||||
ns_timestamp += now.tv_nsec;
|
||||
if (ns_timestamp.has_overflow()) {
|
||||
// TODO: Deal with this before 2262-04-21T00:47:16Z.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue