[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dostounix()              Convert Date and Time to UNIX Time Format

 #include   <dos.h>

 long         dostounix(dateptr,timeptr);
 struct date  *dateptr;                  Pointer to date structure
 struct time  *timeptr;                  Pointer to time structure

    dostounix() converts a date and time, as returned from getdate() and
    gettime() into UNIX-format time. 'dateptr' points to a date structure.
    'timeptr' points to a time structure.  Both contain valid DOS date and
    time information.

    Returns:    The UNIX version of current time: number of seconds since
                January 1, 1970 (GMT) is returned.

See Also: ctime() getdate() gettime() unixtodos()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson