1.3.3.1.26 MAC_COMMON_TimeIsPastSeconds Function

C

bool MAC_COMMON_TimeIsPastSeconds
(
    int32_t timeValue
);

Summary

Indicates whether the given time value is in the past.

Description

This primitive indicates whether the given time value is in the past.

Precondition

None.

Parameters

ParamDescription
timeValueTime value in seconds

Returns

True if the time value is in the past. False if the time value is not in the past.

Example

int32_t validityTime = 10;

// Perform other actions
// ...

if (MAC_COMMON_TimeIsPastSeconds(validityTime))
{
    // Validity ended
}

Remarks

None.