Cancel Job
Check if the numbers are valid
The numbers array need to check
Minimus value
Maximam value
If all the numbers are in the data range
The Interface to create Job
The trigger to use
The function the job to run
The new instance of the give job or null if fail
Create Simple trigger
The Cron Trigger string
The Cron trigger
Compute the period timer
Decode time range
The decode map
The range string, like 2-5
The function used to ran the schedule job, and setTimeout for next running job
Get the date limit of given month
The date count of given month
Return and remove the next valid job
Next valid job
return the next match time of the given value
The time value
The cronTime need to match
The match value or null if unmatch(it offten means an error occur).
return the next match time of the given value
Return, but not remove the next valid job
Next valid job
Schedule a new Job
The trigger to use
The function the job to run
The data the job use
The job id, which can be canceled by cancelJob(id:number)
Clear last timeout and schedule the next job, it will automaticly run the job that need to run now
The job need to schedule
void
Match the given value to the cronTime
The given value
The cronTime
The match result
This is the tirgger that use an object as trigger.