Home / FAQ / How to set a timed trigger rule?

How to set a timed trigger rule?

Timed trigger rules support inputting Crontab expressions.

Caution: As Kubernetes uses UTC (Coordinated Universal Time), when setting the timed trigger rule for a scheduled task, if you need to set it to local time (such as Beijing time), you need to first convert the local time (GMT+8) to UTC time, and then convert the UTC time to a Crontab expression.

Conversion to UTC time

Time conversion rules: Local time - Time difference = UTC

Take BST to UTC time as an example:

Beijing is located in GMT+8, and the time difference between Beijing time and UTC time is 8 hours. The time conversion rule is:

Beijing time - 8 = UTC

Example 1: Convert Beijing time 9:42 to UTC time: 42 09 - 00 08 = 42 01, which means the UTC time is 1:42 AM.

Example 2: Convert Beijing time 4:32 AM to UTC time: 32 04 - 00 08 = -68 03. If it is a negative number, it means the previous day, and another conversion is needed: -68 03 + 00 24 = 32 20, which means the UTC time is 8:32 PM the previous day.

Write Crontab expressions

Basic Formats: minute hour day month week

Value range

Minute Hour Day Month Week
[0-59] [0-23] [1-31] [1-12] or [JAN-DEC] [1-7] or [SUN-SAT]

The following special characters are allowed in the minute, hour, day, month, and weekday fields:

Reference tool

Common Examples