time
/
1.2.0
time 1.2.0
Install from the command line:
Learn more about npm packages
$ npm install @aquaron/time@1.2.0
Install via package.json:
"@aquaron/time": "1.2.0"
About this version
Collection of date/time related utilities.
Function | Return |
---|---|
isUpcoming('2020-03-17') |
false |
timeLeft(1000) |
Object containing {... seconds: 1}
|
timeLeftStr(1000) |
1 second |
nextDow(6) |
Date object of next Saturday |
prevDow(3) |
Date object of prev Wednesday |
toDate('2020-03-17') |
Date object |
toYMD(new Date()) |
Today's date in YYYY-MM-DD
|
toPrettyDate('2020-03-17') |
Tuesday, Mar 30, 2020, 12:00 AM |