File:  [CSRG BSD Unix] / 43BSDReno / contrib / mh / zotnet / tws.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

/* tws.h */

#define	DSTXXX
			/* DST vs. GMT nonsense */

struct tws {
    int     tw_sec;
    int     tw_min;
    int     tw_hour;

    int     tw_mday;
    int     tw_mon;
    int     tw_year;

    int     tw_wday;
    int     tw_yday;

    int     tw_zone;

    long    tw_clock;

    int     tw_flags;
#if defined(ZONEINFO) || defined(BSD44)
    char    tw_zonename[5];
#endif
#define	TW_NULL	0x0000
#define	TW_SDAY	0x0003		/* how day-of-week was determined */
#define	  TW_SNIL	0x0000	/*   not given */
#define	  TW_SEXP	0x0001	/*   explicitly given */
#define	  TW_SIMP	0x0002	/*   implicitly given */
#define	TW_SZONE 0x0004		/* how timezone was determined */
#define	  TW_SZNIL	0x0000	/*   not given */
#define	  TW_SZEXP	0x0004	/*   explicitly given */
#define	TW_DST	0x0010		/* daylight savings time */
#define	TW_ZONE	0x0020		/* use numeric timezones only */
};

void    twscopy ();
int	twsort ();
long	twclock ();
char   *dasctime (), *dtimezone (), *dctime (), *dtimenow ();
struct tws *dgmtime(), *dlocaltime (), *dparsetime (), *dtwstime ();

#ifndef	ATZ
#define	dtime(cl)	dasctime (dlocaltime (cl), TW_ZONE)
#else	ATZ
#define	dtime(cl)	dasctime (dlocaltime (cl), TW_NULL)
#endif	ATZ
#if !defined(ZONEINFO) && !defined(BSD44)
#define	dtwszone(tw)	dtimezone (tw -> tw_zone, tw -> tw_flags)
#else
#define dtwszone(tw)    (tw->tw_zonename)
#endif !defined(ZONEINFO)


extern char   *tw_dotw[], *tw_ldotw[], *tw_moty[];

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.