blob: ba53d462b5ea2dd8228b8f8b1d7718ce085bc33a [file] [log] [blame]
#ifndef LIBC_TIME_H_
#define LIBC_TIME_H_
struct mytm {
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
int tm_yday;
};
int __secs_to_tm(long long t, struct mytm *tm);
int __month_to_secs(int month, int is_leap);
long long __year_to_secs(long long year, int *is_leap);
long long __tm_to_secs(const struct mytm *tm);
#endif /* LIBC_TIME_H_ */