next_after skips disallowed months, calendar days, hours, and minutes instead of
scanning every civil minute. The optional search_limit_minutes argument remains an
exact bound on civil-minute distance, including for sparse annual schedules.
Development
moon fmt --check
moon check --target all --deny-warn
moon test --target all --deny-warn
moon info
Run the standalone example:
moon run examples/basic
Roadmap
Add richer source-span diagnostics
Add deterministic cross-implementation test vectors
Add a small WebAssembly playground
Publish the package to mooncakes.io after API review
MoonCron
MoonCron is a pure MoonBit library and command-line tool for parsing, validating, explaining, and evaluating classic five-field cron expressions.
Features
*,,,-,/JANandMON-FRI@hourly,@daily,@weekly, and@monthlyQuick start
Validate an expression:
Explain an expression in English or Simplified Chinese:
Expected output:
List the next three matching times after a civil date-time:
Expected output:
Library example
Supported syntax
* * * * *0 9,12,18 * * *0 9-17 * * **/15 * * * *0 0 1 JAN *0 9 * * MON-FRI@daily0 */5 * * * *L,W,#,?See
docs/compatibility.mdfor precise cron semantics anddocs/explanations.mdfor explanation behavior.Search performance
next_afterskips disallowed months, calendar days, hours, and minutes instead of scanning every civil minute. The optionalsearch_limit_minutesargument remains an exact bound on civil-minute distance, including for sparse annual schedules.Development
Run the standalone example:
Roadmap
License
Apache-2.0. See
LICENSE.