cron_mock
Determine if a cron expression, @macro, or natural interval is due now. Returns hit/miss, next and previous trigger times, and countdown without launching a real timer.
Instructions
定时决策:判断「现在到点了吗」(cron / @宏 / every 30 minutes),返回是否命中、下次与上次触发时刻及倒计时。不启动真实定时器。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| now | No | 可选:以该时刻(ISO 8601)为“现在”进行评估 | |
| schedule | Yes | cron 表达式(分 时 日 月 周,如 0 18 * * *)或 @daily/@hourly 宏,或 every 30 minutes 这类自然语法 | |
| timezone | No | 按此时区评估 cron;缺省用系统时区 |