1.0.2 • Published 5 years ago

faketime v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

faketime

You can get faketime from now to previous.

installing

$ npm install faketime

useage

require {faketime} from 'faketime'

let range = 1000; // Range of change between two times(millisecond)
let amount = 5;   // Number of times returned

let times = faketime(range, amount);

// You will get
/*times = [
    "2019-07-16 14:23:46",
    "2019-07-16 14:23:05",
    "2019-07-16 14:20:19",
    "2019-07-16 14:19:24"
]*/
1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago