Get the current timestamp in milliseconds. Provides a more semantic and consistent interface than +new Date()
and other weird js idioms.
$ npm install @f/timestamp
var timestamp = require('@f/timestamp')
timestamp() === new Date().getTime()
timestamp() === +new Date
Returns: The current timestamp in milliseconds.
MIT