cm_get_date.h 433 B

12345678910111213141516171819
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cm_get_date_h
  4. #define cm_get_date_h
  5. #include <time.h>
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. /** Parse a date/time string. Treat relative times with respect to 'now'. */
  10. time_t cm_get_date(time_t now, const char* str);
  11. #ifdef __cplusplus
  12. } /* extern "C" */
  13. #endif
  14. #endif