https://github.com/marcelog/erl_vcron
Erlang Vixie Cron-like expression interpreter
https://github.com/marcelog/erl_vcron
erlang vixie-cron
Last synced: 7 months ago
JSON representation
Erlang Vixie Cron-like expression interpreter
- Host: GitHub
- URL: https://github.com/marcelog/erl_vcron
- Owner: marcelog
- License: apache-2.0
- Created: 2017-09-24T15:00:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-24T18:46:43.000Z (over 8 years ago)
- Last Synced: 2025-02-22T16:05:55.518Z (over 1 year ago)
- Topics: erlang, vixie-cron
- Language: Erlang
- Size: 644 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
erl_vcron
=========
Given a [calendar:datetime()](http://erlang.org/doc/man/calendar.html#type-datetime)
and a [Vixie Cron-like expression](https://en.wikipedia.org/wiki/Cron),
returns `true` if the expression covers the datetime().
# Build
Just run `make`.
# Examples
```
1> erl_vcron:applies({{2017, 07, 10}, {4, 15, 0}}, "*/5 2-4 10,15 7 1").
```
There are many more examples in the [eunit tests](https://github.com/marcelog/erl_vcron/blob/master/test/erl_vcron_test.erl).
## License
The source code is released under Apache 2 License.
Check [LICENSE](https://github.com/marcelog/erl_vcron/blob/master/LICENSE) file for more information.