b_util_utc

数据结构

typedef struct
{
    uint16_t year; 
    uint8_t  month;
    uint8_t  day;
    uint8_t  week;
    uint8_t  hour;
    uint8_t  minute;
    uint8_t  second;
} bUTC_DateTime_t;

typedef uint32_t bUTC_t;

接口介绍

void bUTC_SetTime(bUTC_t utc);
bUTC_t bUTC_GetTime(void);

void   bUTC2Struct(bUTC_DateTime_t *tm, bUTC_t utc, int32_t zone);
bUTC_t bStruct2UTC(bUTC_DateTime_t tm, int32_t zone);