8000 Note discrepancy between cron formats · github4f/node-cron@fecbe77 · GitHub
[go: up one dir, main page]

Skip to content

Commit fecbe77

Browse files
committed
Note discrepancy between cron formats
The README links to crontab.org, which provides examples with 5 fields and minute granularity. node-cron expects the leftmost value to describe the granularity in seconds. This inconsistency led me to misinterpret the running times in a cron.CronJob.
1 parent ca5f6b5 commit fecbe77

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ Available Cron patterns:
4949
Ranges. E.g. 1-3,5
5050
Steps. E.g. */2
5151

52-
[Read up on cron patterns here](http://crontab.org).
52+
[Read up on cron patterns here](http://crontab.org). Note the examples in the
53+
link have five fields, and 1 minute as the finest granularity, but this library
54+
has six fields, with 1 second as the finest granularity.
5355

5456
Cron Ranges
5557
==========
@@ -142,7 +144,7 @@ Install
142144
API
143145
==========
144146

145-
Parameter Based
147+
Parameter Based
146148

147149
`CronJob`
148150

0 commit comments

Comments
 (0)
0