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

Readme

Keywords

Package Sidebar

Install

npm i is-now

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mastilver