add timespec_clear_spec() and timespec_get_spec()

This commit is contained in:
Pim van Pelt
2018-11-04 16:17:35 +01:00
parent 0ad33f5fbc
commit a01e548249
3 changed files with 74 additions and 11 deletions

View File

@ -43,5 +43,7 @@ struct mgos_timespec;
struct mgos_timespec *timespec_create();
bool timespec_destroy(struct mgos_timespec **ts);
bool timespec_add_spec(struct mgos_timespec *ts, const char *spec);
bool timespec_clear_spec(struct mgos_timespec *ts);
bool timespec_get_spec(struct mgos_timespec *ts, char *ret, int retlen);
bool timespec_match(const struct mgos_timespec *ts, const struct tm *tm);
bool timespec_match_now(const struct mgos_timespec *ts);