A tool for calculating relative timestamps to now.
ago is a simple function for calculating a timestamp some amount of time ago. (or in the future)
var ago =// 344 milliseconds ago, e.g. 1376505400233// same as above, default unit is "ms"// four minutes ago// 3 * 24 hours ago// one quarter (13 weeks) ago// months are approximate (30.4375 days)// years are approximate as well (365.25 days)console// Mon Apr 24 1978 00:06:49 GMT-0800 (PDT)// It also exposes a fromNow() function to calculate future times. e.g:ago// is just sugar for:
Calculate a millisecond epoch timestamp relative to right now.
This is a convenience function for
ago(-number, [,unit]) for finding timestamps in the future.