home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / c / timestmp.h < prev    next >
C/C++ Source or Header  |  1994-03-04  |  1KB  |  32 lines

  1. /************************************************************************
  2.  
  3.   File:        timestmp.h
  4.   Function:    Definition of timedata structure for time and date
  5.   Version:    1.00
  6.   Author:    R. Sjoberg (SJOBRG@MIT-OZ)
  7.   History:    10/16/83 - original V1.00
  8.  
  9. ************************************************************************/
  10.  
  11. struct timedata {
  12.     int tim_yr;        /* year, range 1980 and higher */
  13.     int tim_mon;    /* month, range 1-12 */
  14.     int tim_dat;    /* date in month, range 1-31 */
  15.     int tim_dow;    /* day of week index, 0 (Sun) to 6 (Sat) */
  16.     int tim_hr;        /* hour of day, range 0-23 */
  17.     int tim_min;    /* minute, range 0-59 */
  18.     int tim_sec;    /* second, range 0-59 */
  19. };
  20.  
  21. /* NOTE:  If day of week (tim_dow) is not available, the value in
  22.  *      this field should be -1
  23.  */
  24.  
  25. /* The following are defined in timestmp.c */
  26.  
  27. extern char *timemon[];    /* names of months, suitable for use with
  28.                tim_mon field (3-char abbreviations) */
  29.  
  30. extern char *timedow[];    /* day of week names, suitable for use with
  31.                tim_dow field (3-char abbreviations) */
  32.