libc_time.h 282 B

1234567891011121314151617
  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. };
  11. int __secs_to_tm(long long t, struct mytm *tm);
  12. long long __tm_to_secs(const struct mytm *tm);
  13. #endif /* LIBC_TIME_H_ */