libc_time.h 417 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. };
  13. int __secs_to_tm(long long t, struct mytm *tm);
  14. int __month_to_secs(int month, int is_leap);
  15. long long __year_to_secs(long long year, int *is_leap);
  16. long long __tm_to_secs(const struct mytm *tm);
  17. #endif /* LIBC_TIME_H_ */