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,v 1.1 82/05/06 11:34:29 wft Exp $"
   9: 
  10: /* $Log:	time.h,v $
  11:  * Revision 1.1  82/05/06  11:34:29  wft
  12:  * Initial revision
  13:  *
  14:  */
  15: 
  16: struct tm {     /* See defines below for allowable ranges */
  17:     int tm_sec;
  18:     int tm_min;
  19:     int tm_hour;
  20:     int tm_mday;
  21:     int tm_mon;
  22:     int tm_year;
  23:     int tm_wday;
  24:     int tm_yday;
  25:     int tm_isdst;
  26:     int tm_zon; /* NEW: mins westward of Greenwich */
  27:     int tm_ampm;    /* NEW: 1 if AM, 2 if PM */
  28: };
  29: 
  30: #define LCLZONE (5*60)  /* Until V7 ftime(2) works, this defines local zone*/
  31: #define TMNULL (-1) /* Items not specified are given this value
  32: 			 * in order to distinguish null specs from zero
  33: 			 * specs.  This is only used by partime and
  34: 			 * maketime. */
  35: 
  36:     /* Indices into TM structure */
  37: #define TM_SEC 0    /* 0-59			*/
  38: #define TM_MIN 1    /* 0-59			*/
  39: #define TM_HOUR 2   /* 0-23			*/
  40: #define TM_MDAY 3   /* 1-31			day of month */
  41: #define TM_DAY TM_MDAY  /*  "			synonym      */
  42: #define TM_MON 4    /* 0-11			*/
  43: #define TM_YEAR 5   /* (year-1900) (year)	*/
  44: #define TM_WDAY 6   /* 0-6			day of week (0 = Sunday) */
  45: #define TM_YDAY 7   /* 0-365		day of year */
  46: #define TM_ISDST 8  /* 0 Std, 1 DST		*/
  47:     /* New stuff */
  48: #define TM_ZON 9    /* 0-(24*60) minutes west of Greenwich */
  49: #define TM_AMPM 10  /* 1 AM, 2 PM		*/

Defined struct's

Defined macros

LCLZONE defined in line 30; never used
TIMEID defined in line 8; used 1 times
TMNULL defined in line 31; used 32 times
TM_AMPM defined in line 49; used 3 times
TM_DAY defined in line 41; used 6 times
TM_HOUR defined in line 39; used 8 times
TM_ISDST defined in line 46; used 1 times
TM_MDAY defined in line 40; used 1 times
  • in line 41
TM_MIN defined in line 38; used 5 times
TM_MON defined in line 42; used 16 times
TM_SEC defined in line 37; used 4 times
TM_WDAY defined in line 44; used 7 times
TM_YDAY defined in line 45; never used
TM_YEAR defined in line 43; used 4 times
TM_ZON defined in line 48; used 23 times

Usage of this include

Last modified: 1983-03-28
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 877
Valid CSS Valid XHTML 1.0 Strict