NWSMECMAToDOSTime

Converts an ECMA time value to a DOS packed date and time value.

Syntax

  #include <smsutapi.h> 
   
  CCODE NWSMECMAToDOSTime (
     ECMATime  *ecmaTime, 
     UINT32    *dosTime);
  

Parameters

ECMATime

(IN) Points to the ECMA time value to convert.

dosTime

(OUT) Points to the DOS packed date and time equivalent of ECMATime.

Return Values

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

0x00000000

Successful

Nonzero

Cannot convert ECMATime to a valid DOS time value.

Remarks

If ECMATime contains a date value that is before 1980, dosTime returns zero and NWSMECMAToDOSTime returns a nonzero value.