diff options
Diffstat (limited to 'Source/cm_get_date.h')
-rw-r--r-- | Source/cm_get_date.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Source/cm_get_date.h b/Source/cm_get_date.h new file mode 100644 index 0000000..38a690e --- /dev/null +++ b/Source/cm_get_date.h @@ -0,0 +1,19 @@ +/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying + file Copyright.txt or https://cmake.org/licensing for details. */ +#ifndef cm_get_date_h +#define cm_get_date_h + +#include <time.h> /* NOLINT(modernize-deprecated-headers) */ + +#ifdef __cplusplus +extern "C" { +#endif + +/** Parse a date/time string. Treat relative times with respect to 'now'. */ +time_t cm_get_date(time_t now, const char* str); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif |