@f/timestamp
v1.0.0
Published
Get the current timestamp
Downloads
26,246
Readme
timestamp
Get the current timestamp in milliseconds. Provides a more semantic and consistent interface than +new Date() and other weird js idioms.
Installation
$ npm install @f/timestampUsage
var timestamp = require('@f/timestamp')
timestamp() === new Date().getTime()
timestamp() === +new DateAPI
timestamp()
Returns: The current timestamp in milliseconds.
License
MIT
