> For the complete documentation index, see [llms.txt](https://docs.wetbot.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wetbot.space/eng/guide/cron-patterns.md).

# Cron patterns

## Syntax of cron pattern;

```
// ┌────────────── minute (0 - 59)
// │ ┌──────────── hour (0 - 23)
// │ │ ┌────────── day of month (1 - 31)
// │ │ │ ┌──────── month (1 - 12, JAN-DEC)
// │ │ │ │ ┌────── day of week (0 - 6, SUN-Mon) 
// │ │ │ │ │       (0 to 6 are Sunday to Saturday; 7 is Sunday, the same as 0)
// │ │ │ │ │
// * * * * *
```

## Quick examples

#### This will runs every minute

\* \* \* \* \*

This will runs every Sunday

0 0 \* \* 7

#### Every 30 minutes from 9 a.m. to 5 p.m.

\*/30 9-17 \* \* \*

#### From Monday to Friday at 11:30

30 11 \* \* 1-5

#### Every 10 minutes

\*/10 \* \* \* \*

#### At midnight

00 00 \* \* \*

## It is also possible to use the following "nicknames" as pattern.

| Nickname  | Description                            |
| --------- | -------------------------------------- |
| @yearly   | Run once a year, ie. "0 0 1 1 \*".     |
| @annually | Run once a year, ie. "0 0 1 1 \*".     |
| @monthly  | Run once a month, ie. "0 0 1 \* \*".   |
| @weekly   | Run once a week, ie. "0 0 \* \* 0".    |
| @daily    | Run once a day, ie. "0 0 \* \* \*".    |
| @hourly   | Run once an hour, ie. "0 \* \* \* \*". |

### [A convenient website for generating cron patterns](https://www.freeformatter.com/cron-expression-generator-quartz.html)[ #1](https://www.freeformatter.com/cron-expression-generator-quartz.html)

### [A convenient website for generating cron patterns #2](https://crontab.cronhub.io/)

### [A convenient website for generating cron patterns #3](https://crontab.guru/)

### [A convenient website for generating cron patterns #4](https://hexagon.github.io/cron-builder/)

{% hint style="info" %}
A cron pattern with an interval of less than 60 seconds cannot be created!
{% endhint %}

{% hint style="info" %}
All patterns are executed in the UTC time zone
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wetbot.space/eng/guide/cron-patterns.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
