Sha256: 4f6b9121a6f1d1d1e5b80ab4597cb4ed9f5f8884be41f6cb08cb4dd4b2038ff4
Contents?: true
Size: 686 Bytes
Versions: 1
Compression:
Stored size: 686 Bytes
Contents
# Chrono Provides a chain of logics about chronology. ## Chrono::Iterator Parse cron syntax and determine next scheduled run. ```ruby require "chrono" iterator = Chrono::Iterator.new("30 * * * *") iterator.next #=> 2000-01-01 00:30:00 iterator.next #=> 2000-01-02 00:30:00 iterator.next #=> 2000-01-03 00:30:00 ``` The following syntax is supported. See [examples](https://github.com/r7kamura/chrono/blob/master/spec/chrono/iterator_spec.rb) for more details. * (*) Asterisk * (,) Comma * (-) Hyphen * (/) Slash ``` * * * * * T T T T T | | | | `- wday --- 0 .. 6 | | | `--- month -- 1 .. 12 | | `----- day ---- 1 .. 31 | `------- hour --- 0 .. 23 `--------- minute - 0 .. 59 ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chrono-0.0.1 | README.md |