1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-11-22 15:32:06 +00:00
Files
amiga-tz/tzfile.h

40 lines
897 B
C
Raw Normal View History

/* %W% */
/*
** Format of time zone information files.
*/
#ifndef TZDIR
#define TZDIR "/etc/tzdir" /* Time zone object file directory */
#endif
#ifndef TZDEFAULT
#define TZDEFAULT "localtime"
#endif
#ifndef TZ_MAX_RULES
#define TZ_MAX_RULES 170 /* Maximum number of rules */
#endif
#ifndef TZ_MAX_TYPES
#define TZ_MAX_TYPES 10 /* Maximum number of Saving Times */
#endif
#ifndef TZ_ABBR_LEN
#define TZ_ABBR_LEN 7 /* Maximum Time Zone abbr. length */
#endif
struct dsinfo {
long ds_gmtoff; /* Offset from GMT in seconds */
char ds_abbr[TZ_ABBR_LEN+1]; /* Time Zone abbreviation */
char ds_isdst; /* Used to fill tm_isdst */
};
struct tzinfo {
int tz_rulecnt; /* Number of rules used */
long tz_times[TZ_MAX_RULES]; /* Times when rules kick in */
char tz_types[TZ_MAX_RULES]; /* Saving Time types for the above */
struct dsinfo tz_dsinfo[TZ_MAX_TYPES];
/* See above */
};