Skip to main content

xSuite Archive Prism User Guide

Cron expressions for triggers

A cron expression for the scheduler trigger consists of at least 6 characters and a maximum of 7 characters. The entry year is optional. Each character is separated by a space.

Field

Required

Section

Special characters that are allowed

Seconds

Yes

0-59

, - * /

Minutes

Yes

0-59

, - * /

Hours

Yes

0-23

, - * /

Days of the month

Yes

1-31

, - * ? / L

Month

Yes

1-12

, - * /

Days of the week

Yes

0-7

, - * ? / L

Year

No

1970-2099

, - * /

Notice

In the Days of the week field, the characters have the following meaning:

  • 0 or 7: Sunday

  • 1: Monday

  • 2: Tuesday

  • etc.

The specification of SUN,MON,TUE,WED,THU,FRI,SAT is also permissible.

Special characters

Special character

Description

*

All values

For minutes, the character * means every minute, for example.

-

Range

For hours, the specification 10-12 means, for example, the hours 10:00-12:00.

?

"every"

For months, the specification ? means, for example, "every day of the month".

,

Certain value

For hours, 1,5,9 means, for example, 1:00, 5:00 and 9:00.

/

Dividers

For minutes or seconds, the specification 0/15 means, for example, that the execution always takes place when the minute or hour is divisible by 15, i.e. 15, 30, 45 and 60.

L

"last"

In the case of Days of the month of the month, L means the last day of the month, for example.

Examples

Value

Description

0 0 12 * * ?

Starts at 12:00:00.

0 15 10 ? * *

10:15:00, every day.

0 15 10 * * ? 2025

10:15:00 every day in the year 2025

0 * 14 * * ?

Starts every minute between 14:00 and 14:59, every day.

0 0/5 14 * * ?

Starts every 5 minutes between 14:00 and 14:59, every day.

0 0/5 14,18 * * ?

Starts every 5 minutes between 14:00 and 14:55 or 18:00 and 18:55, every day.

0 0-5 14 * * ?

Starts every minute between 14:00 and 14:05, every day.

0 10.44 14 ? 3 WED

Starts at 14:10 and 14:44 every Wednesday (WED) in March

0 15 10 L * ?

Starts at 10:15 on the last day of the month.

0 0/5 * * * ?

Starts every 5 minutes.