random-timestamps
v1.0.1
Published
Generate a random timestamp.
Downloads
211
Maintainers
Readme
random-timestamps
Generate a random timestamp. This is a standard Unix time, so a random number of seconds since January 1, 1970.
Install
$ npm install --save random-timestamps
Usage
var randomTimestamp = require('random-timestamps');
// API
// - randomTimestamp();
randomTimestamp();
// => 576556683
Related
- random-year - Generate a random year.
- random-month - Generate a random month.
- random-day - Generate a random day of a month.
- random-hour - Generate a random hour.
- random-minute - Generate a random minute.
- random-second - Generate a random second.
- random-millisecond - Generate a random millisecond.
- random-weekday - Generate a random weekday.
- random-datetime - Generate a random date.
- random-ampm - Return am or pm. Very simple.
- random-hammertime - Generate a random hammertime.
Contributing
Pull requests and stars are highly welcome.
For bugs and feature requests, please create an issue.