核心解析引擎 (Parser): 接收如 */5 * * * *、0 12 * * 1-5 这样标准的 Cron 字符串,能够识别星号(*)、列表(,)、范围(-)和步长(/)等特殊语法,并转化为计算机可高效读取的内部结构。 调度验证器 (Matcher): 提供一个核心方法:输入任意一个指定的时间点(年、月、日、时、分),系统能够迅速判断该时间是否被当前的 Cron 规则所命中(即:是否应该触发
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
cron_mbt
a simple and fast cron expression parser and scheduler written in MoonBit. created for the 2026 OSC Track 1 MoonBit Competition.
features
@hourly,@daily, etc.usage
add to
moon.mod.json:simple parsing and matching:
getting next execution time:
dev
run tests:
license
Apache 2.0