Skip to content

Commit

Permalink
Confusion in nth fields in documentation (#890)
Browse files Browse the repository at this point in the history
First field in cron expression represents seconds and not minutes
  • Loading branch information
denrou authored Jan 24, 2021
1 parent 3db5b67 commit 802664d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/content/usage/cron-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ month.
Slash ( / )

Slashes are used to describe increments of ranges. For example 3-59/15 in the
1st field (minutes) would indicate the 3rd minute of the hour and every 15
minutes thereafter. The form "*\/..." is equivalent to the form "first-last/...",
1st field (seconds) would indicate the 3rd second of the minute and every 15
seconds thereafter. The form "*\/..." is equivalent to the form "first-last/...",
that is, an increment over the largest possible range of the field. The form
"N/..." is accepted as meaning "N-MAX/...", that is, starting at N, use the
increment until the end of that specific range. It does not wrap around.

Comma ( , )

Commas are used to separate items of a list. For example, using "MON,WED,FRI" in
the 5th field (day of week) would mean Mondays, Wednesdays and Fridays.
the 6th field (day of week) would mean Mondays, Wednesdays and Fridays.

Hyphen ( - )

Expand Down

0 comments on commit 802664d

Please sign in to comment.