From bb266e5d30a3160ee436afbbb1f1872788ae926b Mon Sep 17 00:00:00 2001 From: inventionpro <109528211+inventionpro@users.noreply.github.com> Date: Sat, 10 Feb 2024 22:16:59 +0100 Subject: [PATCH] Update script.js --- script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.js b/script.js index daeeefa..8aafa4d 100644 --- a/script.js +++ b/script.js @@ -16,9 +16,9 @@ function __PRI__edr(er,tr) { if (er == 0) { return ''; } else { - return er+' '+tr+(er>1?'s':'')+' ' + return er+tr+(er>1?'s':'')+' ' } } function time_gud(time) { - return `${__PRI__edr(Math.floor(time / 31536000000),'millennium')}${__PRI__edr(Math.floor(time / 31536000 % 1000),'year')}${__PRI__edr(Math.floor(time % 31536000 / 604800),'week')}${__PRI__edr(Math.floor(time / 86400) % 7,'day')}${__PRI__edr(Math.floor(time / 3600) % 24,'hour')}${__PRI__edr(Math.floor(time / 60) % 60,'minute')}${__PRI__edr(time % 60,'second')}` + return `${__PRI__edr(Math.floor(time / 31536000),'Y')}${__PRI__edr(Math.floor(time % 31536000 / 604800),'W')}${__PRI__edr(Math.floor(time / 86400) % 7,'d')}${__PRI__edr(Math.floor(time / 3600) % 24,'h')}${__PRI__edr(Math.floor(time / 60) % 60,'m')}${__PRI__edr(time % 60,'s')}` }