]> diplodocus.org Git - nmh/blob - docs/historical/mh-6.8.5/zotnet/RCS/tws.h,v
sbr/mts.c: Delete mmdlm2; use same-valued mmdlm1 instead.
[nmh] / docs / historical / mh-6.8.5 / zotnet / RCS / tws.h,v
1 head 1.4;
2 access;
3 symbols;
4 locks; strict;
5 comment @ * @;
6
7
8 1.4
9 date 92.05.12.22.08.28; author jromine; state Exp;
10 branches;
11 next 1.3;
12
13 1.3
14 date 90.04.05.15.06.49; author sources; state Exp;
15 branches;
16 next 1.2;
17
18 1.2
19 date 90.02.23.10.33.22; author sources; state Exp;
20 branches;
21 next 1.1;
22
23 1.1
24 date 90.02.23.10.33.04; author sources; state Exp;
25 branches;
26 next ;
27
28
29 desc
30 @@
31
32
33 1.4
34 log
35 @fix ifdefs
36 @
37 text
38 @/* tws.h */
39 /* @@(#)$Id: tws.h,v 1.3 1990/04/05 15:06:49 sources Exp jromine $ */
40
41 #define DSTXXX
42 /* DST vs. GMT nonsense */
43
44 struct tws {
45 int tw_sec;
46 int tw_min;
47 int tw_hour;
48
49 int tw_mday;
50 int tw_mon;
51 int tw_year;
52
53 int tw_wday;
54 int tw_yday;
55
56 int tw_zone;
57
58 long tw_clock;
59
60 int tw_flags;
61 #define TW_NULL 0x0000
62 #define TW_SDAY 0x0003 /* how day-of-week was determined */
63 #define TW_SNIL 0x0000 /* not given */
64 #define TW_SEXP 0x0001 /* explicitly given */
65 #define TW_SIMP 0x0002 /* implicitly given */
66 #define TW_SZONE 0x0004 /* how timezone was determined */
67 #define TW_SZNIL 0x0000 /* not given */
68 #define TW_SZEXP 0x0004 /* explicitly given */
69 #define TW_DST 0x0010 /* daylight savings time */
70 #define TW_ZONE 0x0020 /* use numeric timezones only */
71 };
72
73 void twscopy ();
74 int twsort ();
75 long twclock ();
76 char *dasctime (), *dtimezone (), *dctime (), *dtimenow ();
77 struct tws *dgmtime(), *dlocaltime (), *dparsetime (), *dtwstime ();
78
79 #ifndef ATZ
80 #define dtime(cl) dasctime (dlocaltime (cl), TW_ZONE)
81 #else
82 #define dtime(cl) dasctime (dlocaltime (cl), TW_NULL)
83 #endif
84 #define dtwszone(tw) dtimezone (tw -> tw_zone, tw -> tw_flags)
85
86
87 extern char *tw_dotw[], *tw_ldotw[], *tw_moty[];
88 @
89
90
91 1.3
92 log
93 @add ID
94 @
95 text
96 @d2 1
97 a2 1
98 /* @@(#)$Id:$ */
99 d44 1
100 a44 1
101 #else ATZ
102 d46 1
103 a46 1
104 #endif ATZ
105 @
106
107
108 1.2
109 log
110 @Fixes from Van Jacobson
111 @
112 text
113 @d2 1
114 @
115
116
117 1.1
118 log
119 @Initial revision
120 @
121 text
122 @d24 1
123 a24 1
124 #define TW_SDAY 0x0007 /* how day-of-week was determined */
125 d28 3
126 @