mirror of
https://github.com/PerMalmberg/libcron.git
synced 2025-04-22 08:23:04 -05:00
Update README.md (#26)
This commit is contained in:
parent
a3b892a24a
commit
5c8de082c1
24
README.md
24
README.md
@ -183,17 +183,6 @@ Each part is separated by one or more whitespaces. It is thus important to keep
|
|||||||
`Day of month` and `day of week` are mutually exclusive so one of them must at always be ignored using
|
`Day of month` and `day of week` are mutually exclusive so one of them must at always be ignored using
|
||||||
the '?'-character to ensure that it is not possible to specify a statement which results in an impossible mix of these fields.
|
the '?'-character to ensure that it is not possible to specify a statement which results in an impossible mix of these fields.
|
||||||
|
|
||||||
## Convenience scheduling
|
|
||||||
|
|
||||||
These special time specification "nicknames" which replace the 5 initial time and date fields, and are prefixed with the '@' character, are supported:
|
|
||||||
|
|
||||||
@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 * * * *".
|
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
|Expression | Meaning
|
|Expression | Meaning
|
||||||
@ -204,6 +193,19 @@ These special time specification "nicknames" which replace the 5 initial time an
|
|||||||
| 0 0 */12 ? * * | Every twelve hours
|
| 0 0 */12 ? * * | Every twelve hours
|
||||||
| @hourly | Every hour
|
| @hourly | Every hour
|
||||||
|
|
||||||
|
## Convenience scheduling
|
||||||
|
|
||||||
|
These special time specification tokens which replace the 5 initial time and date fields, and are prefixed with the '@' character, are supported:
|
||||||
|
|
||||||
|
|Token|Meaning
|
||||||
|
| --- | --- |
|
||||||
|
| @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 * * * *".
|
||||||
|
|
||||||
# Randomization
|
# Randomization
|
||||||
|
|
||||||
The standard cron format does not allow for randomization, but with the use of `CronRandomization` you can generate random
|
The standard cron format does not allow for randomization, but with the use of `CronRandomization` you can generate random
|
||||||
|
Loading…
x
Reference in New Issue
Block a user