File: README.md

package info (click to toggle)
ruby-parse-cron 0.1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 136 kB
  • sloc: ruby: 388; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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)

The goal of this gem is to parse a crontab timing specification and determine when the
job should be run. It is not a scheduler, it does not run the jobs.

## API example

```
cron_parser = CronParser.new('30 * * * *')

# Comming times
next_comming_time = cron_parser.next(Time.now)

# Times that have been
most_resently_time = cron_parser.last(Time.now)
```