5.2. Timer

Timer can be described as the engine of the system, many task cannot run independently without Timer as trigger.

 Setting

Name

Any unique name.

Description

Additional description to the entry.

Type

Two types of timer are supported: Interval and Schedule .

Interval timer is fairly straightforward, it is triggered every time the interval defined elapses. If Interval timer is defined, all date and time related fields will be disabled and ignored.

Schedule timer has similar concept to cronjobs in Unix/Linux environment. It is triggered at the specific date and time defined.

Enter desired time of event into each date time element. One or more patterns can be entered into one column by using comma as separator.

Interval

Interval in millisecond. This field is disabled and ignored if timer type is set to Schedule .

Year

Specify four digits year.

Month

Specify any number between 1 to 12.

Day

Specify any number between 1 to 31.

Day of Week

Specify any number between 0 to 6. 0 represents Sunday, 1 represents Monday, and so on.

Hour

Specify any number between 0 to 23.

Minute

Specify any number between 0 to 59.

Second

Specify any number between 0 to 59.

 Date Time Configuration

All date time columns, i.e. Year, Month, Day, Day of Week, Hour, Minute and Second support the one or combination of the following entry patterns, separated by comma character.

In the following list of pattern, N represents any number in the valid range of the respective column.

(empty)

Leave the column empty. Trigger the timer on all valid entry.

*

An asterisk character. Trigger the timer on all valid entry. This is same as leaving the column empty.

N

A numeric value. Trigger the timer if the date or time portion of current timestamp matches the value entered.

 

Example 5.7. Date time configuration number

0

Enter "0" into Second column will make a timer that trigger every minute at 0th second.

,

A comma character. Comma separator to separate multiple patterns.

 

Example 5.8. Date time configuration comma operator

0,30

Enter "0,30" into Second column will make a timer that trigger every 30 second at both 0th and 30th seconds.

-

A hyphen character. Range operator to include any numbers between the start end end number, inclusive the start and end numbers.

 

Example 5.9. Date time configuration range operator

10-12

Enter "10-12" into Second column will make a timer that trigger every minute at 10th, 11th and 12th seconds.

[Note] Note

Regularly used timers are added by default upon creating new project.