NWUnpackDateTime(3nw)


NWUnpackDateTime -- unpacks packed date and time into passed structures

Synopsis

   #include <nwmisc.h> 
   or 
   #include <nwcalls.h> 
   

void N_API NWUnpackDateTime (nuint32 dateTime, NW_DATE N_FAR * sDate, NW_TIME N_FAR * sTime);

Description

The parameters are as follows:

dateTime
(IN) Specifies the date and time in packed format.

sDate
(OUT) Points to NW_DATE (optional).

sTime
(OUT) Points to NW_TIME (optional).

Return values

0x0000
SUCCESSFUL

Notices

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
Because hours is defined as a nuint16, NW_TIME takes up a nuint32 of space.

Services

Miscellaneous

NCP calls

None

References

NWPackDateTime(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.