NWUnpackDateTime

Unpacks a packed date and time into the passed structures

NetWare Server:3.11, 3.12, 3.2, 4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98
Service:Time/Date Manipulation

Syntax

  #include <nwmisc.h> 
  or 
  #include <nwcalls.h> 
   
  void N_API  NWUnpackDateTime  ( 
     nuint32          dateTime,  
     NW_DATE  N_FAR  *sDate,  
     NW_TIME  N_FAR  *sTime);
  

Pascal Syntax

  #include <nwmisc.inc> 
   
  Procedure NWUnpackDateTime 
    (dateTime : nuint32; 
     Var sDate : NW_DATE; 
     Var sTime : NW_TIME 
  );
  

Parameters

dateTime
(IN) Specifies the date and time in packed format.
sDate
(OUT) Points to the NW_DATE structure (optional).
sTime
(OUT) Points to the NW_TIME structure (optional).

Remarks

Many functions return dates in a packed format identical to that defined by DOS. The time occupies the low order word and the date occupies the high order word. The bits are defined as follows:

  0-4     Seconds divided by two 
  5-10    Minutes 
  11-15   Hours (0-23) 
  16-20   Day 
  21-24   Month 
  25-31   Year minus 1980
  

See timedate.c for sample code.

See Also

NWPackDate, NWPackDateTime, NWPackTime, NWUnpackDate, NWUnpackTime