NWSMCheckDateAndTimeRange

Compares a date and time value against a date and time range.

Syntax

  #include <smsutapi.h> 
   
  CCODE NWSMCheckDateAndTimeRange (
     UINT32   firstDateAndTime, 
     UINT32   lastDateAndTime, 
     UINT32   compareDateAndTime);
  

Parameters

firstDateAndTime

(IN) Specifies the starting date and time value in DOS date and time format.

lastDateAndTime

(IN) Specifies the ending date and time value in DOS date and time format.

compareDateAndTime

(IN) Specifies the date and time value to be compared against the starting and ending values in DOS date and time format.

Return Values

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

TRUE

compareDateAndTime is out of bounds.

FALSE

compareDateAndTime is within bounds.

Remarks

NWSMCheckDateAndTimeRange assumes that the input values are correct. Zero specifies no beginning or ending boundary and FALSE will be returned.

See Also

NWSMGetCurrentDateAndTime, NWSMPackDateTime