NWSMPackDateTime

Packs the date and time information into a DOS packed date and time value.

Syntax

  #include <smsutapi.h> 
   
  UINT32 NWSMPackDateTime ( 
     UINT16   year, 
     UINT16   month, 
     UINT16   day, 
     UINT16   hours, 
     UINT16   minutes, 
     UINT16   seconds);
  

Parameters

year

(IN) Specifies the year value to pack (minimum value is 1980).

month

(IN) Specifies the month value to pack (1-12).

day

(IN) Specifies the day value to pack (1-31).

hours

(IN) Specifies the hour value to pack (0-23).

minutes

(IN) Specifies the minute value to pack (0-59).

seconds

(IN) Specifies the seconds value to pack (0-59).

Return Values

If NWSMPackDateTime is successful, it returns a DOS packed date and time.

Remarks

NWSMPackDateTime assumes that the input values are correct.

Do not divide seconds by two.

See Also

NWSMUnPackDateTime