|
|
1.1 ! root 1: /* tws.h */ ! 2: ! 3: #define DSTXXX ! 4: /* DST vs. GMT nonsense */ ! 5: ! 6: struct tws { ! 7: int tw_sec; ! 8: int tw_min; ! 9: int tw_hour; ! 10: ! 11: int tw_mday; ! 12: int tw_mon; ! 13: int tw_year; ! 14: ! 15: int tw_wday; ! 16: int tw_yday; ! 17: ! 18: int tw_zone; ! 19: ! 20: long tw_clock; ! 21: ! 22: int tw_flags; ! 23: #if defined(ZONEINFO) || defined(BSD44) ! 24: char tw_zonename[5]; ! 25: #endif ! 26: #define TW_NULL 0x0000 ! 27: #define TW_SDAY 0x0003 /* how day-of-week was determined */ ! 28: #define TW_SNIL 0x0000 /* not given */ ! 29: #define TW_SEXP 0x0001 /* explicitly given */ ! 30: #define TW_SIMP 0x0002 /* implicitly given */ ! 31: #define TW_SZONE 0x0004 /* how timezone was determined */ ! 32: #define TW_SZNIL 0x0000 /* not given */ ! 33: #define TW_SZEXP 0x0004 /* explicitly given */ ! 34: #define TW_DST 0x0010 /* daylight savings time */ ! 35: #define TW_ZONE 0x0020 /* use numeric timezones only */ ! 36: }; ! 37: ! 38: void twscopy (); ! 39: int twsort (); ! 40: long twclock (); ! 41: char *dasctime (), *dtimezone (), *dctime (), *dtimenow (); ! 42: struct tws *dgmtime(), *dlocaltime (), *dparsetime (), *dtwstime (); ! 43: ! 44: #ifndef ATZ ! 45: #define dtime(cl) dasctime (dlocaltime (cl), TW_ZONE) ! 46: #else ATZ ! 47: #define dtime(cl) dasctime (dlocaltime (cl), TW_NULL) ! 48: #endif ATZ ! 49: #if !defined(ZONEINFO) && !defined(BSD44) ! 50: #define dtwszone(tw) dtimezone (tw -> tw_zone, tw -> tw_flags) ! 51: #else ! 52: #define dtwszone(tw) (tw->tw_zonename) ! 53: #endif !defined(ZONEINFO) ! 54: ! 55: ! 56: extern char *tw_dotw[], *tw_ldotw[], *tw_moty[];
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.