what is the meaning of the below cron expressions

what is the meaning of the below cron expressions?

is it going to every 1 min 30 secs or 1 hr 30 mins?

30 0/1 * * * ?

is it going to every 2 mins or 2 hr?

0 0/2 * * * ?
LVL 20
chaitu chaituAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
Not a Java question!
chaitu chaituAuthor Commented:
where do i place this question?In java also we can use these quartz cron expressions right..
mzzltijnCommented:
Great, this isn't a java question, so I might actually be able to answer it :-).

First example you give: 30 0/1 * * * ?
Fire at 30 seconds every 1 minute. So 13:00:30, 13:01:30, 13:02:30 etcetera

Second example: 0 0/2 * * * ?
Fire every 2 minutes at 00 seconds. So 13:00:00, 13:02:00, 13:04:00 etcetera

Both will be executed every day.
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

CEHJCommented:
30 0/1 * * * 

Open in new window

At every 30th minute past every hour
0 0/2 * * *

Open in new window

On the hour every two hours

Both the above every day

Seconds do not have a field of their own
mzzltijnCommented:
Aha! Thanks, seconds don't have a field. That sure solves a  cron mystery for me!

Not sure how I missed that, as the example is quite obvious....
 # ┌───────────── min (0 - 59)
 # │ ┌────────────── hour (0 - 23)
 # │ │ ┌─────────────── day of month (1 - 31)
 # │ │ │ ┌──────────────── month (1 - 12)
 # │ │ │ │ ┌───────────────── day of week (0 - 6) (0 to 6 are Sunday to Saturday, or use names; 7 is Sunday, the same as 0)
 # │ │ │ │ │
 # │ │ │ │ │
 # * * * * *  command to execute

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CEHJCommented:
???
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.