@f/timestamp

Get the current timestamp

Stats

StarsIssuesVersionUpdatedCreatedSize
@f/timestamp
001.0.06 years ago6 years agoMinified + gzip package size for @f/timestamp in KB

Readme

timestamp

Build status Git tag NPM version Code style

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/timestamp

Usage

var timestamp = require('@f/timestamp')

timestamp() === new Date().getTime()
timestamp() === +new Date

API

timestamp()

Returns: The current timestamp in milliseconds.

License

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.