node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…

timedial

add and subtract to unix timestamps

timedial

dial it in.

moment.js is great for just about everything except unix timestamps. timestamps are great for leveldb ranges.

var dial = require('timedial')
 
var moment = Date.now()
 
var future = dial.forward(moment, 4, 'hours')

dial#forward(timestamp, factor, unit)

dial#back(timestamp, factor, unit)

dial#readable(timestamp)

npm install timedial