home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / gnulib / rcs4 / source / time.h < prev   
Encoding:
C/C++ Source or Header  |  1991-03-08  |  1.8 KB  |  61 lines

  1.  
  2. /* Structure for use by time manipulating subroutines.
  3.  * The following library routines use it:
  4.  *    libc: ctime, localtime, gmtime, asctime
  5.  *    libcx: partime, maketime (may not be installed yet)
  6.  */
  7.  
  8. #define TIMEID "$Id: time.h 5.2 90/07/15 11:35:55 ROOT_DOS Release $"
  9.  
  10. /* $Log:    time.h $
  11.  * Revision 5.2  90/07/15  11:35:55  ROOT_DOS
  12.  * checked in with -k by ROOT_DOS at 91.02.07.11.46.06.
  13.  * 
  14.  * Revision 5.2  90/07/15  11:35:55  ROOT_DOS
  15.  * DOS version of RCS 4.0 checked in for MODS
  16.  * by lfk@athena.mit.edu
  17.  * Also update to MSC 6.0
  18.  * 
  19.  * Revision 1.1  84/01/23  14:50:50  kcs
  20.  * Initial revision
  21.  * 
  22.  * Revision 1.1  82/05/06  11:34:29  wft
  23.  * Initial revision
  24.  * 
  25.  */
  26.  
  27. struct tm {     /* See defines below for allowable ranges */
  28.     int tm_sec;
  29.     int tm_min;
  30.     int tm_hour;
  31.     int tm_mday;
  32.     int tm_mon;
  33.     int tm_year;
  34.     int tm_wday;
  35.     int tm_yday;
  36.     int tm_isdst;
  37.     int tm_zon;    /* NEW: mins westward of Greenwich */
  38.     int tm_ampm;    /* NEW: 1 if AM, 2 if PM */
  39. };
  40.  
  41. #define LCLZONE (5*60)    /* Until V7 ftime(2) works, this defines local zone*/
  42. #define TMNULL (-1)    /* Items not specified are given this value
  43.              * in order to distinguish null specs from zero
  44.              * specs.  This is only used by partime and
  45.              * maketime. */
  46.  
  47.     /* Indices into TM structure */
  48. #define TM_SEC 0    /* 0-59            */
  49. #define TM_MIN 1    /* 0-59            */
  50. #define TM_HOUR 2    /* 0-23            */
  51. #define TM_MDAY 3    /* 1-31            day of month */
  52. #define TM_DAY TM_MDAY    /*  "            synonym      */
  53. #define TM_MON 4    /* 0-11            */
  54. #define TM_YEAR 5    /* (year-1900) (year)    */
  55. #define TM_WDAY 6    /* 0-6            day of week (0 = Sunday) */
  56. #define TM_YDAY 7    /* 0-365        day of year */
  57. #define TM_ISDST 8    /* 0 Std, 1 DST        */
  58.     /* New stuff */
  59. #define TM_ZON 9    /* 0-(24*60) minutes west of Greenwich */
  60. #define TM_AMPM 10    /* 1 AM, 2 PM        */
  61.