| 123456789101112131415161718 |
- #ifndef __DATE_H
- #define __DATE_H
- #include <rtthread.h>
- typedef struct {
- int tm_sec;
- int tm_min;
- int tm_hour;
- int tm_mday;
- int tm_mon;
- int tm_year;
- int tm_wday;
- }rtc_time;
- uint32_t mktimev(rtc_time *tm);
- void to_tm(uint32_t tim, rtc_time * tm);
- #endif
|