cron expression parser #127

Merged
Jef Roosens merged 20 commits from cron into dev 2022-04-12 21:37:03 +02:00
Showing only changes of commit bd0c276fd8 - Show all commits

View file

@ -14,8 +14,5 @@ fn (r1 ScheduledBuild) < (r2 ScheduledBuild) bool {
// cron starts a cron daemon & starts periodically scheduling builds. // cron starts a cron daemon & starts periodically scheduling builds.
pub fn cron(conf Config) ? { pub fn cron(conf Config) ? {
ce := parse_expression('0 3') ? println('WIP')
t := time.parse('2002-01-01 00:00:00') ?
t2 := ce.next(t) ?
println(t2)
} }