source: trunk/third/cns/src/admin/time.h @ 8789

Revision 8789, 1.7 KB checked in by ghudson, 28 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r8788, which included commits to RCS files with non-trunk default branches.
Line 
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.1.1 1996-09-06 00:45:55 ghudson Exp $"
9
10/* $Log: not supported by cvs2svn $
11 * Revision 1.1  1996/06/24 20:49:33  ghudson
12 * Initial revision
13 *
14 * Revision 1.1.1.2  1991/12/03 18:46:09  eichin
15 * Athena Kerberos 4 patch 9
16 *
17 * Revision 4.0  89/01/23  09:46:09  jtkohl
18 * No change, incrementing vno to 4.x
19 *
20 * Revision 1.1  88/12/20  17:38:11  wesommer
21 * Initial revision
22 *
23 * Revision 1.1  82/05/06  11:34:29  wft
24 * Initial revision
25 *
26 */
27
28struct tm {     /* See defines below for allowable ranges */
29        int tm_sec;
30        int tm_min;
31        int tm_hour;
32        int tm_mday;
33        int tm_mon;
34        int tm_year;
35        int tm_wday;
36        int tm_yday;
37        int tm_isdst;
38        int tm_zon;     /* NEW: mins westward of Greenwich */
39        int tm_ampm;    /* NEW: 1 if AM, 2 if PM */
40};
41
42#define LCLZONE (5*60)  /* Until V7 ftime(2) works, this defines local zone*/
43#define TMNULL (-1)     /* Items not specified are given this value
44                         * in order to distinguish null specs from zero
45                         * specs.  This is only used by partime and
46                         * maketime. */
47
48        /* Indices into TM structure */
49#define TM_SEC 0        /* 0-59                 */
50#define TM_MIN 1        /* 0-59                 */
51#define TM_HOUR 2       /* 0-23                 */
52#define TM_MDAY 3       /* 1-31                 day of month */
53#define TM_DAY TM_MDAY  /*  "                   synonym      */
54#define TM_MON 4        /* 0-11                 */
55#define TM_YEAR 5       /* (year-1900) (year)   */
56#define TM_WDAY 6       /* 0-6                  day of week (0 = Sunday) */
57#define TM_YDAY 7       /* 0-365                day of year */
58#define TM_ISDST 8      /* 0 Std, 1 DST         */
59        /* New stuff */
60#define TM_ZON 9        /* 0-(24*60) minutes west of Greenwich */
61#define TM_AMPM 10      /* 1 AM, 2 PM           */
Note: See TracBrowser for help on using the repository browser.