cm_parse_date.h 437 B

12345678910111213141516
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file LICENSE.rst or https://cmake.org/licensing for details. */
  3. #pragma once
  4. #include <time.h> /* NOLINT(modernize-deprecated-headers) */
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. /** Parse a date/time string. Treat relative times with respect to 'now'. */
  9. time_t cm_parse_date(time_t now, char const* str);
  10. #ifdef __cplusplus
  11. } /* extern "C" */
  12. #endif