I am currently having difficulty in understanding the CronExpression parameter for System.schedule()
method.
As per doc it says the syntax is
"Minutes, Hours, Day of month, Month, Day of week, optional Year"
http://www.salesforce.com/developer/docs/api/Content/sforce_api_objects_crontrigger.htm
I scheduled a job from UI and when I queried on the CronTrigger field for CronExpression I got
"0 0 9 ? * 1,2,3,4,5,6,7"
The job above is scheduled to run at 9:00 AM on all days. I could infer "all days" is reflected by "1,2,3,4,5,6,7" but then it does not match with the doc's syntax reference.
I am lil confused.
Also can someone let me know what should be the CronExpression for hourly job (runs at every hour..say 9:00 AM, 10:00 AM, 11:00 AM etc).