# kron **Repository Path**: ForteScarlet/kron ## Basic Information - **Project Name**: kron - **Description**: A multi-platform cron expression parser - **Primary Language**: Kotlin - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://github.com/ForteScarlet/kron - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-28 - **Last Updated**: 2022-05-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: cron, Kotlin ## README # kron 一个基于 `kotlin-multiplatform` 的 cron解析、生成工具。 *暂时不支持对 `星期(day of week)` 的解析,只支持通配符 `*`。* ```kotlin 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 } } ```