Skip to content
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

@aquaron/time codeql tests npmjs badge-time

Collection of date/time related utilities.

Usage

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

Details


Assets

  • time-1.2.0.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0