Skip to content

Commit 5ff2cd5

Browse files
committed
Merge pull request #25 from zserafini/readme_cleanup
Update README
2 parents 3fee123 + 6b66236 commit 5ff2cd5

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# parse-cron - parse crontab syntax & determine next scheduled run [![Build Status](https://travis-ci.org/siebertm/parse-cron.png)](https://travis-ci.org/siebertm/parse-cron)
1+
# Parse-Cron
2+
## Parse crontab syntax to determine scheduled run times [![Build Status](https://travis-ci.org/siebertm/parse-cron.png)](https://travis-ci.org/siebertm/parse-cron)
23

34
The goal of this gem is to parse a crontab timing specification and determine when the
45
job should be run. It is not a scheduler, it does not run the jobs.
@@ -8,10 +9,10 @@ job should be run. It is not a scheduler, it does not run the jobs.
89
```
910
cron_parser = CronParser.new('30 * * * *')
1011
11-
# Comming times
12-
next_comming_time = cron_parser.next(Time.now)
12+
# Next occurrence
13+
next_time = cron_parser.next(Time.now)
1314
14-
# Times that have been
15-
most_resently_time = cron_parser.last(Time.now)
15+
# Last occurrence
16+
most_recent_time = cron_parser.last(Time.now)
1617
```
1718

0 commit comments

Comments
 (0)