ctime.h 679 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef __CTIME_H_
  2. #define __CTIME_H_
  3. #include "time.h"
  4. #include "stdint.h"
  5. #define DST_NONE 0
  6. typedef long suseconds_t; /* microseconds. */
  7. struct timeval
  8. {
  9. time_t tv_sec; /* seconds */
  10. suseconds_t tv_usec; /* and microseconds */
  11. };
  12. struct timezone
  13. {
  14. int tz_minuteswest; /* minutes west of Greenwich */
  15. int tz_dsttime; /* type of dst correction */
  16. };
  17. void fr_tz_set(int32_t offset_sec);
  18. int32_t fr_tz_get(void);
  19. time_t timegm(struct tm * const t);
  20. struct tm *gmtime_r(const time_t *timep, struct tm *r);
  21. int gettimeofday(struct timeval *tv, struct timezone *tz);
  22. #endif