cm_get_date.h 827 B

12345678910111213141516171819202122232425262728
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2015 Kitware, Inc.
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cm_get_date_h
  11. #define cm_get_date_h
  12. #include <time.h>
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. /** Parse a date/time string. Treat relative times with respect to 'now'. */
  17. time_t cm_get_date(time_t now, const char *str);
  18. #ifdef __cplusplus
  19. } /* extern "C" */
  20. #endif
  21. #endif