add time.js; fix up times, cash-out
This commit is contained in:
parent
01d46f1fe7
commit
4f07af096c
3 changed files with 59 additions and 20 deletions
23
lib/time.js
Normal file
23
lib/time.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
const seconds = 1000
|
||||
const second = seconds
|
||||
const minutes = 60 * seconds
|
||||
const minute = minutes
|
||||
const hours = 60 * minutes
|
||||
const hour = hours
|
||||
const days = 24 * hours
|
||||
const day = days
|
||||
const weeks = 7 * days
|
||||
const week = weeks
|
||||
|
||||
module.exports = {
|
||||
seconds,
|
||||
second,
|
||||
minutes,
|
||||
minute,
|
||||
hours,
|
||||
hour,
|
||||
days,
|
||||
day,
|
||||
weeks,
|
||||
week
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue