mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2026-09-12 02:52:15 +00:00
created
SCCS-file: tzfile.h SCCS-SID: 1.1
This commit is contained in:
committed by
Paul Eggert
parent
164b93d818
commit
824495b54c
@@ -0,0 +1,25 @@
|
||||
/* %W% */
|
||||
|
||||
#define TZDIR "tzdir" /* Time zone object file directory */
|
||||
#define TZ_MAX_RULES 120 /* Maximum number of rules */
|
||||
#define TZ_ABBR_TOT 40 /* Maximum total length of... */
|
||||
/* ...time zone abbreviations... */
|
||||
/* ...(including trailing ASCII nuls) */
|
||||
|
||||
struct rule {
|
||||
long r_start; /* Starting at this time(2) value... */
|
||||
short r_stdoff; /* ...add this many seconds to time... */
|
||||
short r_abbrind; /* ...and use the time zone abbrevation... */
|
||||
/* ...that starts at this index */
|
||||
};
|
||||
|
||||
/*
|
||||
** Format of time zone information files.
|
||||
*/
|
||||
|
||||
struct tzinfo {
|
||||
long tz_gmtoff; /* Offset from GMT in seconds */
|
||||
int tz_rulecnt; /* Number of rules used */
|
||||
struct rule tz_rules[TZ_MAX_RULES]; /* Rules */
|
||||
char tz_abbrs[TZ_ABBR_TOT]; /* Time Zone abbreviatons */
|
||||
};
|
||||
Reference in New Issue
Block a user