Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
inventionpro authored Feb 10, 2024
1 parent 939b923 commit bb266e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')}`
}

0 comments on commit bb266e5

Please sign in to comment.