1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-12-06 18:37:14 +00:00
Files
amiga-tz/tzfile.h
Arthur David Olson 9e1f21ffd1 new format
SCCS-file: tzfile.h
SCCS-SID: 2.3
2012-07-18 03:01:39 -04:00

54 lines
1.3 KiB
C

/* %W% */
/*
** Information about time zone files.
*/
#ifndef TZDIR
#define TZDIR "/etc/zoneinfo" /* Time zone object file directory */
#endif
#ifndef TZDEFAULT
#define TZDEFAULT "localtime"
#endif
/*
** Each file begins with. . .
*/
struct tzhead {
char tzh_reserved[32]; /* reserved for future use */
char tzh_timecnt[4]; /* coded number of transition times */
char tzh_typecnt[4]; /* coded number of local time types */
char tzh_charcnt[4]; /* coded number of abbr. chars */
};
/*
** . . .followed by. . .
**
** tzh_timecnt (char [4])s coded transition times a la time(2)
** tzh_timecnt (unsigned char)s types of local time starting at above
** tzh_typecnt repetitions of
** one (char [4]) coded GMT offset in seconds
** one (unsigned char) used to set tm_isdt
** one (unsigned char) that's an abbreviation list index
** tzh_charcnt (char)s '\0'-terminated zone abbreviaton strings
*/
/*
** In the current implementation, "settz()" refuses to deal with files that
** exceed any of the limits below.
*/
#ifndef TZ_MAX_TIMES
#define TZ_MAX_TIMES 300 /* Maximum number of transition times */
#endif
#ifndef TZ_MAX_TYPES
#define TZ_MAX_TYPES 10 /* Maximum number of local time types */
#endif
#ifndef TZ_MAX_CHARS
#define TZ_MAX_CHARS 50 /* Maximum number of abbreviation characters */
#endif