# 2.11BSD#431 - /usr/src/new/rcs/src/time.h

##### Macros

    LCLZONE           X
    TIMEID            X
    TMNULL            X
    TM_AMPM           X
    TM_DAY            X
    TM_HOUR           X
    TM_ISDST          X
    TM_MDAY           X
    TM_MIN            X
    TM_MON            X
    TM_SEC            X
    TM_WDAY           X
    TM_YDAY           X
    TM_YEAR           X
    TM_ZON            X

##### struct's

    tm                X

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

#### Defined struct's

tm defined in line 19; used 28 times

- in /usr/src/new/rcs/src/ci.c line 129(2), 186(2), 773(2)
- in /usr/src/new/rcs/src/co.c line 117(2), 149(2)
- in /usr/src/new/rcs/src/maketime.c line 64-69(6)
- in /usr/src/new/rcs/src/partime.c line 145(2), 489(2)
- in /usr/src/new/rcs/src/rcsutil.c line 325(2), 342(2)
- in /usr/src/new/rcs/src/rlog.c line 101(2), 871(2)

#### Defined macros

LCLZONE defined in line 33; never used
TIMEID defined in line 8; used 1 times

- in /usr/src/new/rcs/src/partime.c line 51

TMNULL defined in line 34; used 32 times

- in /usr/src/new/rcs/src/maketime.c line 92, 108-117(5), 127, 137, 151-153(3), 184, 193
- in /usr/src/new/rcs/src/partime.c line 156, 163, 214-215(2), 253-260(4), 271-278(5), 329, 342-346(3), 352, 490

TM_AMPM defined in line 52; used 3 times

- in /usr/src/new/rcs/src/partime.c line 119-120(2), 352

TM_DAY defined in line 44; used 6 times

- in /usr/src/new/rcs/src/partime.c line 253, 259-260(2), 272, 278, 287

TM_HOUR defined in line 42; used 8 times

- in /usr/src/new/rcs/src/partime.c line 208, 215-218(2), 271, 277, 302, 346-348(2)

TM_ISDST defined in line 49; used 1 times

- in /usr/src/new/rcs/src/partime.c line 182

TM_MDAY defined in line 43; used 1 times

- in line 44

TM_MIN defined in line 41; used 5 times

- in /usr/src/new/rcs/src/partime.c line 205, 219, 307-312(2), 342

TM_MON defined in line 45; used 16 times

- in /usr/src/new/rcs/src/partime.c line 72-83(12), 249, 259-260(2), 291

TM_SEC defined in line 40; used 4 times

- in /usr/src/new/rcs/src/partime.c line 202, 308, 318, 343

TM_WDAY defined in line 47; used 7 times

- in /usr/src/new/rcs/src/partime.c line 85-91(7)

TM_YDAY defined in line 48; never used
TM_YEAR defined in line 46; used 4 times

- in /usr/src/new/rcs/src/partime.c line 214, 254, 273, 296

TM_ZON defined in line 51; used 23 times

- in /usr/src/new/rcs/src/partime.c line 93-117(22), 181

#### Usage of this include

time.h used 6 times

- in /usr/src/new/rcs/src/ci.c line 116
- in /usr/src/new/rcs/src/co.c line 94
- in /usr/src/new/rcs/src/maketime.c line 58
- in /usr/src/new/rcs/src/partime.c line 48
- in /usr/src/new/rcs/src/rcsutil.c line 324
- in /usr/src/new/rcs/src/rlog.c line 80

Last modified: 1988-02-18 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 439 |