NWSMPackTime

Packs time information into a DOS packed time value.

Syntax

  #include <smsutapi.h> 
   
  UINT16 NWSMPackTime ( 
     UINT16   hours, 
     UINT16   minutes, 
     UINT16   seconds);
  

Parameters

hours

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

minutes

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

seconds

(IN) Specifies the number of seconds to pack.

Return Values

If NWSMPackTime is successful, it returns the DOS packed time value.

Remarks

NWSMPackTime returns a DOS packed time value in a 16-bit variable as follows:

  hhhhhmmmmmmbbbbb
  

where

  h = hours 
  m = minutes 
  b= biseconds
  

NWSMPackTime assumes that all input values are correct.

Do not divide seconds by two.

See Also

NWSMUnpackTime