2 /* @(#)$Id: tws.h,v 1.4 1992/05/12 22:08:28 jromine Exp $ */
5 /* DST vs. GMT nonsense */
24 #define TW_NULL 0x0000
25 #define TW_SDAY 0x0003 /* how day-of-week was determined */
26 #define TW_SNIL 0x0000 /* not given */
27 #define TW_SEXP 0x0001 /* explicitly given */
28 #define TW_SIMP 0x0002 /* implicitly given */
29 #define TW_SZONE 0x0004 /* how timezone was determined */
30 #define TW_SZNIL 0x0000 /* not given */
31 #define TW_SZEXP 0x0004 /* explicitly given */
32 #define TW_DST 0x0010 /* daylight savings time */
33 #define TW_ZONE 0x0020 /* use numeric timezones only */
39 char *dasctime (), *dtimezone (), *dctime (), *dtimenow ();
40 struct tws *dgmtime(), *dlocaltime (), *dparsetime (), *dtwstime ();
43 #define dtime(cl) dasctime (dlocaltime (cl), TW_ZONE)
45 #define dtime(cl) dasctime (dlocaltime (cl), TW_NULL)
47 #define dtwszone(tw) dtimezone (tw -> tw_zone, tw -> tw_flags)
50 extern char *tw_dotw[], *tw_ldotw[], *tw_moty[];