#ifndef __DATE_H #define __DATE_H #include #include "stm32g0xx_hal.h" struct rtc_time { int tm_sec; int tm_min; int tm_hour; int tm_mday; int tm_mon; int tm_year; int tm_wday; }; void GregorianDay(struct rtc_time * tm); uint32_t mktimev(struct rtc_time *tm); void to_tm(uint32_t tim, struct rtc_time * tm); #endif