https://github.com/subintp/cron-parser
parse cron syntax
https://github.com/subintp/cron-parser
Last synced: about 2 months ago
JSON representation
parse cron syntax
- Host: GitHub
- URL: https://github.com/subintp/cron-parser
- Owner: subintp
- Created: 2017-10-24T13:42:05.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-24T13:51:07.000Z (over 8 years ago)
- Last Synced: 2025-01-15T11:16:07.847Z (over 1 year ago)
- Language: Ruby
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Usage
============
>>> ruby cron_parser.rb "*/15 0 1,15 * 1-5 /usr/bin/find"
>>> minute - 0 15 30 45
...hour - 0
...day of month - 1 15
...month - 1 2 3 4 5 6 7 8 9 10 11 12
....day of week - 1 2 3 4 5
...command - /usr/bin/find
Supported syntax
================
============= =========== ================= ============== ===========================
Field Name Mandatory Allowed Values Default Value Allowed Special Characters
============= =========== ================= ============== ===========================
Minutes Yes 0-59 N/A \* / , -
Hours Yes 0-23 N/A \* / , -
Day of month Yes 1-31 N/A \* / , -
Month Yes 1-12 N/A \* / , -
Day of week Yes 0-6 N/A \* / , -
============= =========== ================= ============== ===========================