event-time
A typescript (javascript) library which helps to calculate future timestamps for an event.
Install
npm install event-time
Usage
JavaScript
const EventTime = EventTime; const eventTime = ; // add single timestampeventTime; // add timestamp with repeateventTime; // add repeat every Sunday (0), Monday (1), Wednesday (3) and Saturday (6)// after 1530000000000 at timestamp's timeeventTime; // add repeat every 10 months in current time zone// after 1530000000000 at timestamp's timeeventTime; // get 8 timestamps after new Date().getTime()const results0 = eventTimenext8; // get 5 timestamps after 2560000000000const results1 = eventTime;
See also
License
MIT