kron
0.0.2indexedCron parsing and generation tool handles cron expressions, excluding day-of-week parsing, supporting execution and iteration over generated time instances.
1
Stars
—
Used by
dependents
—
Health
/ 100
Cron parsing and generation tool handles cron expressions, excluding day-of-week parsing, supporting execution and iteration over generated time instances.
一个基于 kotlin-multiplatform 的 cron解析、生成工具。
暂时不支持对 星期(day of week) 的解析,只支持通配符 *。
val cron = resolveCron("1-3 0 0 1 * *")
val executor = cron.executor()
var i = 1
for (instant in executor) {
println(instant.toLocalDateTime(TimeZone.currentSystemDefault()))
if (i++ >= 10) {
break
}
}
Surfaced from shared tags and platforms — no rankings paid for.