math simplification
This commit is contained in:
parent
1c4c5a4699
commit
79df03e92b
2
dtime.js
2
dtime.js
|
@ -94,7 +94,7 @@ function dtime(gregorianDate,resultar="default") {
|
||||||
}
|
}
|
||||||
|
|
||||||
var christianMSDay = date.valueOf() % 86400000;
|
var christianMSDay = date.valueOf() % 86400000;
|
||||||
var ds = (1 / (864 / christianMSDay));
|
var ds = (christianMSDay/864);
|
||||||
var h = Math.floor(ds/10000);
|
var h = Math.floor(ds/10000);
|
||||||
ds%= 10000;
|
ds%= 10000;
|
||||||
var m = Math.floor(ds/100);
|
var m = Math.floor(ds/100);
|
||||||
|
|
Loading…
Reference in New Issue