diff options
author | Minteck <contact@minteck.org> | 2021-12-21 16:52:28 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2021-12-21 16:52:28 +0100 |
commit | 46e43f4bde4a35785b4997b81e86cd19f046b69b (patch) | |
tree | c53c2f826f777f9d6b2d249dab556feb72a6c3a6 /src/node_modules/chance/docs/time/hammertime.md | |
download | langdetect-46e43f4bde4a35785b4997b81e86cd19f046b69b.tar.gz langdetect-46e43f4bde4a35785b4997b81e86cd19f046b69b.tar.bz2 langdetect-46e43f4bde4a35785b4997b81e86cd19f046b69b.zip |
Commit
Diffstat (limited to 'src/node_modules/chance/docs/time/hammertime.md')
-rw-r--r-- | src/node_modules/chance/docs/time/hammertime.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/node_modules/chance/docs/time/hammertime.md b/src/node_modules/chance/docs/time/hammertime.md new file mode 100644 index 0000000..75b0985 --- /dev/null +++ b/src/node_modules/chance/docs/time/hammertime.md @@ -0,0 +1,25 @@ +# hammertime + +```js +// usage +chance.hammertime() +``` + +<p class="pullquote" data-pullquote='Stop. Hammertime.' markdown="1"></p> + +Generate a random hammertime. + +```js +chance.hammertime(); +=> 2273327300317 +``` + +Hammertime is the name given to a [Unix time](http://en.wikipedia.org/wiki/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. |