openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_SAL_DateTimeCompare()

uint32_t BSL_SAL_DateTimeCompare ( const BSL_TIME dateA,
const BSL_TIME dateB,
int64_t *  diffSec 
)

Compare Two Dates

参数
dateA[IN] The first date
dateB[IN] The second date
diffSeconds[OUT] Number of seconds between two dates
返回值
BslTimeCmpResultComparison result of two dates
#BSL_TIME_CMP_ERROR- Error in comparison
#BSL_TIME_CMP_EQUAL- The two dates are consistent.
#BSL_TIME_DATE_BEFORE- The first date is before the second date.
#BSL_TIME_DATE_AFTER- The first date is after the second