Every one hour (starting from "now") I am able to schedule using this cron expression (expression) using nodejs cron-job.
But I need to set cron every one hour starting from a specific time. For example, say it starts from 3:30 am — can we do this? What will be the cron expression for this? any ideas appreciated
3 Answers
I suspect that you do not mean "every hour", but "every hour of the day starting 3:30".
30 3-23 * * *30: the minute, half past the hour
3-23: only between hours 3-23 (inclusive)
*: every day
*: every month
*: every weekday
Here's the correct way to do so:
30 * * * *
Here's a breakdown:
30: The minute, half past the hour
*: Every hour
*: Every Day
*: Every Month
*: Every Weekday
run every hour
0 * * * * root /path/to/commandor
@hourly root /path/to/commandor run every hour starting at 07:00
0 7 * * * root /path/to/command