1.0.0 • Published 8 years ago
random-hammertime v1.0.0
random-hammertime
Generate a random hammertime.
Hammertime is the name given to a Unix time with milliseconds. Which is the same as saying the number of milliseconds since 1970. It has finer granularity than a normal Unix timestamp and thus is often used in realtime applications.
According to startup lore, Hammertime was coined by a startup whose founder had an interesting interaction with M.C. Hammer. There was no name given to “Unix time with milliseconds” and while brainstorming ideas (because Unix time with milliseconds is a confusing mouthful), someone suggested Hammertime and it stuck.
Install
$ npm install --save random-hammertime
Usage
var randomHammerTime = require('random-hammertime');
// API
// - randomHammerTime([options]);
// options
// - year
// - month
// - day
// - hour
// - minute
// - second
// - millisecond
randomHammerTime();
// => 2273327300317
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-timestamps - Generate a timestamp.
Contributing
Pull requests and stars are highly welcome.
For bugs and feature requests, please create an issue.
1.0.0
8 years ago