libc_time.h 348 B

123456789101112131415161718192021
  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. #endif /* LIBC_TIME_H_ */