random-test-date
Tiny util to create random date objects in tests.
; // Returns a new date with a random time between `0000-01-01T00:00:00.000Z` and `9999-12-31T23:59:59.999Z`.; // date_2 is a new date 10 milliseconds after date_1; // date_3 is a new date 10 milliseconds before date_1; // date_4 is a new date 1 millisecond after date_1// nextDate is just an alias for addMilliseconds(date, 1); // date_5 is a new date 1 millisecond before date_1// previousDate is just an alias for addMilliseconds(date, -1);