Reputation: 365
I have a cron in nodejs that executes every 5 hours, with this code :
cron.schedule("0 0 */5 * * *")
I want it to execute every day at 2 AM , what do I change ?
Thanks
Upvotes: 2
Views: 2228
Reputation: 7225
You should make this line to be
cron.schedule("0 0 2 * * *")