NWSMECMATimeCompare

Compares two ECMA time values and indicates if they are the same, less than, or greater than one another.

Syntax

  #include <smsutapi.h> 
   
  int NWSMECMATimeCompare (
     ECMATime  *ECMATime1, 
     ECMATime  *ECMATime2);
  

Parameters

ECMATime1

(IN) Points to the time to compare against ECMATime2.

ECMATime2

(IN) Points to the time to compare against ECMATime1.

Return Values

The following table lists the return values associated with the function.

1

ECMATime1 is greater than ECMATime2.

0

ECMATime1 equals ECMATime2.

-1

ECMATime1 is less than ECMATime2.

0xF801

ECMA_TIME_ZONE_UNKNOWN (-2047)

Remarks

ECMA_TIME_ZONE_UNKNOWN is returned if either, or both, time zones of ECMATime1 and ECMATime2 are unknown.