Platform/ECM3532/M3/hw/hal/common/rtc/src/rtc_hal.c
/*
 * Get current time in Epoch format
 */
Get current time in Epoch format
Get current time in Epoch format
uint32_t GetEpochTime(uint32_t *etime)
{
    uint32_t tm;
    struct RtcTm ltime;
    RtcGetTime(&ltime);
    tm = RtcToEpoch(&ltime);
    if (etime)
        *etime = tm;
    return tm;
}
uint32_t GetEpochTime ( uint32_t * etime ) { uint32_t tm ; struct RtcTm ltime ; RtcGetTime ( & ltime ) ; tm = RtcToEpoch ( & ltime ) ; if ( etime ) * etime = tm ; return tm ; }
Get current time in Epoch format
Get current time in Epoch format