0

I have a main function which runs 7 functions in a sequence, what I want is to run the main function on every 15min interval 24x7 based on clock like 02:14:30 -> 02:29:30 -> 02:44:40 -> 02:59:30.

I tried every setInterval way, did all the addition subtraction of time from Date class but couldn't achieve what I want.

Sachin
  • 89
  • 1
  • 2
  • 9
  • Answered [here](https://stackoverflow.com/a/20499504), you can use a scheduler. node-cron (recommended in the linked answer), and node-schedule are a couple of great packages. – Ryan Aug 23 '21 at 08:31

0 Answers0