Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo C - <b>dostounix() convert date and time to unix time format</b> http://www.X-Hacker.org [<<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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson