NWSMUnpackTime

Unpacks a DOS packed time value into its separate hour, minute, and second values.

Syntax

  #include <smsutapi.h> 
   
  void NWSMUnPackTime ( 
     UINT16   time, 
     UINT16  *hours, 
     UINT16  *minutes, 
     UINT16  *seconds);
  

Parameters

time

(IN) Specifies the time value to unpack in DOS time format.

hours

(OUT) Points to the unpacked hour value.

minutes

(OUT) Points to the unpacked hour value.

seconds

(OUT) Points to the unpacked seconds value.

Remarks

NWSMUnPackTime assumes that the input value is correct.

Do not divide seconds by two.

See Also

NWSMPackTime