Skip to content

Commit c2dc332

Browse files
committed
revert changes to cron expressions topic
1 parent 116b54d commit c2dc332

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

docs/reference/cron-expressions.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The following table lists the required cron fields and supported values:
3333
<tr>
3434
<td>Day-of-month</td>
3535
<td>1 through 31</td>
36-
<td>, - * ? </td>
36+
<td>, - * ? L W </td>
3737
</tr>
3838
<tr>
3939
<td>Month</td>
@@ -43,14 +43,12 @@ The following table lists the required cron fields and supported values:
4343
<tr>
4444
<td>Day-of-week</td>
4545
<td>1 through 7 or SUN through SAT</td>
46-
<td>, - * ?</td>
46+
<td>, - * ? L</td>
4747
</tr>
4848
</table>
4949

5050
## Special Characters
5151

52-
Replicated uses the cron v3 Go library. For more information about usage, see [cron](https://pkg.go.dev/github.com/robfig/cron/v3).
53-
5452
The following table describes the supported special characters:
5553

5654
<table>
@@ -74,6 +72,14 @@ The following table describes the supported special characters:
7472
<td>Question mark (?)</td>
7573
<td> Specifies that one or another value can be used. For example, enter <code>5</code> for Day-of-the-month and <code>?</code> for Day-of-the-week to check for updates on the 5th day of the month, regardless of which day of the week it is.</td>
7674
</tr>
75+
<tr>
76+
<td>L</td>
77+
<td>Specifies the last day of the month or week respectively for the Day-of-month or Day-of-week fields.</td>
78+
</tr>
79+
<tr>
80+
<td>W</td>
81+
<td>Specifies the "N-th" occurrence or given day in the month. For example, the second Friday of the month is specified as <code>6#2</code>.</td>
82+
</tr>
7783
</table>
7884

7985
## Predefined Schedules
@@ -143,11 +149,4 @@ The following examples show valid cron expressions to schedule checking for upda
143149

144150
```
145151
30 11 * * *
146-
```
147-
148-
- After 1 hour and 45 minutes, and then every interval following that:
149-
150-
```
151-
@every 1h45m
152-
```
153-
152+
`

0 commit comments

Comments
 (0)