timerange

returns start and end timestamps for YYYY-MM-DD, YYYY-MM, or YYYY

npm install timerange
2 downloads in the last week
8 downloads in the last month

timerange

Dates are really timerages. This library returns those values.

Usage

var tr = timerage() var tr = timerage("2012")
var tr = timerage("2012-06") var tr = timerage("2012-06-15")

npm loves you