type Cron
A cron expression (the type is declared in the prelude; literal cron"0 9 * * MON-FRI").
Example:
use std.time { Cron }
fn main() io {
let c: Cron = cron"*/15 * * * *"
print(c.expr)
}Вывод
*/15 * * * *
pub(api) type Cron = std.core.CronС версии. 1.0.0-beta
Методы
parse | (expr: str) -> Cron | ParseErrorChecks expr at run time; prefer the literal cron"…", which is checked at compile time. |
in | ()Binds the expression to a time zone. |
Определено в: std/time/time.oxl:137