From 79df03e92b9cb024af54aa7c50929db22d0ec106 Mon Sep 17 00:00:00 2001 From: zlax Date: Wed, 12 Jun 2024 16:02:40 +0300 Subject: [PATCH] math simplification --- dtime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dtime.js b/dtime.js index 9b61fab..25f483a 100644 --- a/dtime.js +++ b/dtime.js @@ -94,7 +94,7 @@ function dtime(gregorianDate,resultar="default") { } var christianMSDay = date.valueOf() % 86400000; - var ds = (1 / (864 / christianMSDay)); + var ds = (christianMSDay/864); var h = Math.floor(ds/10000); ds%= 10000; var m = Math.floor(ds/100);