You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
472 B

  1. /* timefuncs.h
  2. */
  3. /* Utility function related to timemodule.c. */
  4. #ifndef TIMEFUNCS_H
  5. #define TIMEFUNCS_H
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. /* Cast double x to time_t, but raise ValueError if x is too large
  10. * to fit in a time_t. ValueError is set on return iff the return
  11. * value is (time_t)-1 and PyErr_Occurred().
  12. */
  13. #ifndef Py_LIMITED_API
  14. PyAPI_FUNC(time_t) _PyTime_DoubleToTimet(double x);
  15. #endif
  16. #ifdef __cplusplus
  17. }
  18. #endif
  19. #endif /* TIMEFUNCS_H */