is-now

1.0.0 • Public • Published

is-now Build StatusCoverage Status

compare times with the current time

Install

$ npm install --save is-now

Usage

var isNow = require('is-now');
 
isNow(new Date());
// true

API

isNow(time)

input

Required
Type: Date, moment, number

The time to compare to the current time, if it's a number it must be a unix timestamp.

License

MIT © Thomas Sileghem

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i is-now

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mastilver