NWSMUnPackDateTime

Unpacks a DOS packed date and time value into separate date and time values.

Syntax

  #include <smsutapi.h> 
   
  void NWSMUnPackDateTime ( 
     UINT32   dateTime, 
     UINT16  *year, 
     UINT16  *month, 
     UINT16  *day, 
     UINT16  *hours, 
     UINT16  *minutes, 
     UINT16  *seconds);
  

Parameters

dateTime

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

year

(OUT) Points to the unpacked year value.

month

(OUT) Points to the unpacked month value.

day

(OUT) Points to the unpacked day value.

hours

(OUT) Points to the unpacked hours value.

minutes

(OUT) Points to the unpacked minutes value.

seconds

(OUT) Points to the unpacked seconds value.

Remarks

NWSMUnPackDateTime assumes that the input value is correct.

Do not divide seconds by two.

See Also

NWSMPackDateTime