Jef Roosens 2023-01-12 12:26:12 +01:00
parent 5176266ca1
commit 7490668b44
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
#include <time.h>
#include <stdint.h>
typedef struct cron_expression {
uint8_t *minutes;
uint8_t *hours;
uint8_t *days;
uint8_t *months;
uint8_t minute_count;
uint8_t hour_count;
uint8_t day_count;
uint8_t month_count;
} CronExpression;
/**
* Given a
*/
int ce_next(struct tm *out, struct tm *ref);
int ce_parse(CronExpression *out, char *s);