v12.0.0 - initial commit
This commit is contained in:
commit
e2c49ea43c
1145 changed files with 97211 additions and 0 deletions
27
packages/server/lib/time.js
Normal file
27
packages/server/lib/time.js
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
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
|
||||
const year = 365 * days
|
||||
const years = year
|
||||
|
||||
module.exports = {
|
||||
seconds,
|
||||
second,
|
||||
minutes,
|
||||
minute,
|
||||
hours,
|
||||
hour,
|
||||
days,
|
||||
day,
|
||||
weeks,
|
||||
week,
|
||||
years,
|
||||
year,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue