Update app.js

master
frigis1 2022-05-14 22:16:15 -07:00 committed by GitHub
parent 29354d6a51
commit 687eaaab4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ function getCurrentTime() {
} }
function decodeTime(t) { function decodeTime(t) {
let hrs = 0 | Math.floor(t / 3600000 % 24); let hrs = 0 | Math.floor(t / 3600000);
let mins = 0 | Math.floor(t / 60000 % 60); let mins = 0 | Math.floor(t / 60000 % 60);
let secs = 0 | Math.floor(t / 1000 % 60); let secs = 0 | Math.floor(t / 1000 % 60);
return { hrs: hrs, mins: mins, secs: secs }; return { hrs: hrs, mins: mins, secs: secs };
@ -33,7 +33,7 @@ function formatTime(t) {
} }
function decodeTimeDecis(t) { function decodeTimeDecis(t) {
let hrs = 0 | Math.floor(t / 3600000 % 24); let hrs = 0 | Math.floor(t / 3600000);
let mins = 0 | Math.floor(t / 60000 % 60); let mins = 0 | Math.floor(t / 60000 % 60);
let secs = 0 | Math.floor(t / 1000 % 60); let secs = 0 | Math.floor(t / 1000 % 60);
let decis = 0 | Math.floor(t / 100 % 100); let decis = 0 | Math.floor(t / 100 % 100);