libc_time.h 496 B

123456789101112131415161718192021222324
  1. #ifndef LIBC_TIME_H_
  2. #define LIBC_TIME_H_
  3. struct mytm {
  4. int tm_sec;
  5. int tm_min;
  6. int tm_hour;
  7. int tm_mday;
  8. int tm_mon;
  9. int tm_year;
  10. int tm_wday;
  11. int tm_yday;
  12. int tm_isdst;
  13. /* long __tm_gmtoff; */
  14. /* const char *__tm_zone; */
  15. };
  16. int __secs_to_tm(long long t, struct mytm *tm);
  17. int __month_to_secs(int month, int is_leap);
  18. long long __year_to_secs(long long year, int *is_leap);
  19. long long __tm_to_secs(const struct mytm *tm);
  20. #endif /* LIBC_TIME_H_ */