timerange

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

timerange

Dates are really timerages. This library returns those values.

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