Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcelog/erl_vcron
Erlang Vixie Cron-like expression interpreter
https://github.com/marcelog/erl_vcron
erlang vixie-cron
Last synced: 21 days 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 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-24T18:46:43.000Z (over 7 years ago)
- Last Synced: 2024-11-16T06:58:27.139Z (2 months 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.