Given a calendar:datetime()
and a Vixie Cron-like expression,
returns true
if the expression covers the datetime().
Just run make
.
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.
The source code is released under Apache 2 License.
Check LICENSE file for more information.