Timespan [js] Returns an extract of unix time that changes each S seconds. Install npm install kc-timespan Use var timeSpan = require('kc-timespan'); var ts = timeSpan(5); console.log(ts);