add time.js; fix up times, cash-out

This commit is contained in:
Josh Harvey 2016-06-05 14:11:14 +03:00
parent 01d46f1fe7
commit 4f07af096c
3 changed files with 59 additions and 20 deletions

23
lib/time.js Normal file
View 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
}