Skip to content

mastilver/is-now

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

check if the given time is the current time

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published