unixtodos()              Convert Date and Time to DOS Format
 
#include <dos.h>
 
 void         unixtodos(utime,dateptr,timeptr);
 long         utime;                     Time
 struct date  *dateptr;                  Pointer to date structure
 struct time  *timeptr;                  Pointer to time structure
 
    unixtodos() converts the UNIX-format time in 'utime' to DOS format
    and fills the 'date' and 'time' structures pointed to by 'dateptr'
    and 'timeptr'.  The time structure is defined as follows:
 
          struct time  {
               unsigned char ti_min;         /* Minutes */
               unsigned char ti_hour;        /* Hours */
               unsigned char ti_hund;        /* Hundredths of seconds */
               unsigned char ti_sec;         /* Seconds */
          };
 
    The 'date' structure is defined as follows:
 
          struct date {
               int da_year;             /* Current year */
               char da_day;             /* Day of the month */
               char da_mon;             /* Month (1 = Jan) */
          };
 
    Returns:    There is no return value.

Seealso:



This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster