NWPackTime

Packs a time 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) NWPackTime ( 
     const NW_TIME N_FAR  *sTime);
  

Pascal Syntax

  #include <nwmisc.inc> 
   
  Procedure NWPackTime 
    (const sTime : pNW_TIME 
  ) : nuint16;
  

Parameters

sTime
(IN) Points to the NW_TIME structure.

Return Values

Returns the packed time upon successful completion.

Remarks

The bits are defined as follows:

  0-4     seconds divided by two 
  5-10    minutes 
  11-15   hours (0-23)
  

NWPackTime does no validity checking on the passed information. The programmer should ensure times in the associated structures are valid before passing them to NWPackTime.

See Also

NWPackDate, NWPackDateTime, NWUnpackDate, NWUnpackDateTime, NWUnpackTime