NWPackDateTime
Packs a date and time into an nuint32
#include <nwmisc.h>
or
#include <nwcalls.h>
nuint32 N_API NWPackDateTime (
const NW_DATE N_FAR *sDate,
const NW_TIME N_FAR *sTime);
#include <nwmisc.inc>
Procedure NWPackDateTime
(const sDate : pNW_DATE;
const sTime : pNW_TIME
) : nuint32;
Returns the packed date and time upon successful completion.
NWPackDateTime returns the packed date and time. If a parameter is NULL, the associated bits will be set to zero.
Many functions return dates in a packed format identical to that defined by DOS. Time occupies the low order word and 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
NWPackDateTime does no validity checking on the passed information. The programmer should ensure dates and/or times in the associated structures are valid before passing them to NWPackDateTime.
See timedate.c for sample code.
NWPackDate, NWPackTime, NWUnpackDate, NWUnpackDateTime, NWUnpackTime