cron_parser
Version, currently 0.3.04 versions
- 0.4.0latestMar 28, 2021
- 0.3.0not indexedMar 28, 2021
- 0.2.0not indexedMar 28, 2021
- 0.1.0not indexedMar 28, 2021
github.com/kostya/cron_parser
Cron parser for Crystal language. Translated from Ruby https://github.com/siebertm/parse-cron
13 stars
5 dependents
License: MIT
Nothing has been indexed for 0.3.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
cron_parser:
github: kostya/cron_parser
version: ~> 0.3.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.3.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# CronParser
Cron parser for Crystal language. Translated from Ruby https://github.com/siebertm/parse-cron. It is parse a crontab timing specification and determine when the job should be run. It is not a scheduler, it does not run the jobs.
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
cron_parser:
github: kostya/cron_parser
```
## Usage
```crystal
require "cron_parser"
cron_parser = CronParser.new("30 * * * *")
# Comming times
p cron_parser.next(Time.now)
p cron_parser.next(Time.now, 5)
p cron_parser.next(Time.utc_now)
p cron_parser.next(Time.utc_now, 5)
# Times that have been
p cron_parser.last(Time.now)
p cron_parser.last(Time.now, 5)
```
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.3.0- Tagged
- Mar 28, 2021
- Commit
94c73e0c4fa9- Indexed
- not yet
Dependents
Repository
github.com/kostya/cron_parser
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 4