NWPackDate

Packs a date into an nuint16

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> 
   
  N_EXTERN_LIBRARY (nuint16) NWPackDate ( 
     const NW_DATE N_FAR  *sDate);
  

Pascal Syntax

  #include <nwmisc.inc> 
   
  Procedure NWPackDate 
    (const sDate : pNW_DATE 
  ) : nuint16;
  

Parameters

sDate
(IN) Points to the NW_DATE structure.

Return Values

Returns the packed date upon successful completion.

Remarks

Many functions return dates in a packed format identical to that defined by DOS. The bits are defined as follows:

  0-4   day 
  5-8   month 
  9-15  year minus 1980
  

NWPackDate does no validity checking on the passed information. The programmer should ensure dates are valid before passing them to NWPackDate.

See Also

NWPackDateTime, NWPackTime, NWUnpackDate, NWUnpackDateTime, NWUnpackTime