Back to index

glibc  2.9
Classes | Defines | Variables
tzfile.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tzhead

Defines

#define TZDIR   "/usr/local/etc/zoneinfo" /* Time zone object file directory */
#define TZDEFAULT   "localtime"
#define TZDEFRULES   "posixrules"
#define TZ_MAGIC   "TZif"
#define TZ_MAX_TIMES   1200
#define TZ_MAX_TYPES   256 /* Limited by what (unsigned char)'s can hold */
#define TZ_MAX_CHARS   50 /* Maximum number of abbreviation characters */
#define TZ_MAX_LEAPS   50 /* Maximum number of leap second corrections */
#define SECSPERMIN   60
#define MINSPERHOUR   60
#define HOURSPERDAY   24
#define DAYSPERWEEK   7
#define DAYSPERNYEAR   365
#define DAYSPERLYEAR   366
#define SECSPERHOUR   (SECSPERMIN * MINSPERHOUR)
#define SECSPERDAY   ((long) SECSPERHOUR * HOURSPERDAY)
#define MONSPERYEAR   12
#define TM_SUNDAY   0
#define TM_MONDAY   1
#define TM_TUESDAY   2
#define TM_WEDNESDAY   3
#define TM_THURSDAY   4
#define TM_FRIDAY   5
#define TM_SATURDAY   6
#define TM_JANUARY   0
#define TM_FEBRUARY   1
#define TM_MARCH   2
#define TM_APRIL   3
#define TM_MAY   4
#define TM_JUNE   5
#define TM_JULY   6
#define TM_AUGUST   7
#define TM_SEPTEMBER   8
#define TM_OCTOBER   9
#define TM_NOVEMBER   10
#define TM_DECEMBER   11
#define TM_YEAR_BASE   1900
#define EPOCH_YEAR   1970
#define EPOCH_WDAY   TM_THURSDAY
#define isleap(y)   (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0))
#define isleap_sum(a, b)   isleap((a) % 400 + (b) % 400)

Variables

static char tzfilehid [] = "@(#)tzfile.h 8.1"

Class Documentation

struct tzhead

Definition at line 50 of file tzfile.h.

Class Members
char tzh_charcnt
char tzh_leapcnt
char tzh_magic
char tzh_reserved
char tzh_timecnt
char tzh_ttisgmtcnt
char tzh_ttisstdcnt
char tzh_typecnt
char tzh_version

Define Documentation

#define DAYSPERLYEAR   366

Definition at line 133 of file tzfile.h.

#define DAYSPERNYEAR   365

Definition at line 132 of file tzfile.h.

#define DAYSPERWEEK   7

Definition at line 131 of file tzfile.h.

#define EPOCH_WDAY   TM_THURSDAY

Definition at line 162 of file tzfile.h.

#define EPOCH_YEAR   1970

Definition at line 161 of file tzfile.h.

#define HOURSPERDAY   24

Definition at line 130 of file tzfile.h.

#define isleap (   y)    (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0))

Definition at line 164 of file tzfile.h.

#define isleap_sum (   a,
  b 
)    isleap((a) % 400 + (b) % 400)

Definition at line 178 of file tzfile.h.

#define MINSPERHOUR   60

Definition at line 129 of file tzfile.h.

#define MONSPERYEAR   12

Definition at line 136 of file tzfile.h.

#define SECSPERDAY   ((long) SECSPERHOUR * HOURSPERDAY)

Definition at line 135 of file tzfile.h.

Definition at line 134 of file tzfile.h.

#define SECSPERMIN   60

Definition at line 128 of file tzfile.h.

#define TM_APRIL   3

Definition at line 149 of file tzfile.h.

#define TM_AUGUST   7

Definition at line 153 of file tzfile.h.

#define TM_DECEMBER   11

Definition at line 157 of file tzfile.h.

#define TM_FEBRUARY   1

Definition at line 147 of file tzfile.h.

#define TM_FRIDAY   5

Definition at line 143 of file tzfile.h.

#define TM_JANUARY   0

Definition at line 146 of file tzfile.h.

#define TM_JULY   6

Definition at line 152 of file tzfile.h.

#define TM_JUNE   5

Definition at line 151 of file tzfile.h.

#define TM_MARCH   2

Definition at line 148 of file tzfile.h.

#define TM_MAY   4

Definition at line 150 of file tzfile.h.

#define TM_MONDAY   1

Definition at line 139 of file tzfile.h.

#define TM_NOVEMBER   10

Definition at line 156 of file tzfile.h.

#define TM_OCTOBER   9

Definition at line 155 of file tzfile.h.

#define TM_SATURDAY   6

Definition at line 144 of file tzfile.h.

#define TM_SEPTEMBER   8

Definition at line 154 of file tzfile.h.

#define TM_SUNDAY   0

Definition at line 138 of file tzfile.h.

#define TM_THURSDAY   4

Definition at line 142 of file tzfile.h.

#define TM_TUESDAY   2

Definition at line 140 of file tzfile.h.

#define TM_WEDNESDAY   3

Definition at line 141 of file tzfile.h.

#define TM_YEAR_BASE   1900

Definition at line 159 of file tzfile.h.

#define TZ_MAGIC   "TZif"

Definition at line 48 of file tzfile.h.

#define TZ_MAX_CHARS   50 /* Maximum number of abbreviation characters */

Definition at line 120 of file tzfile.h.

#define TZ_MAX_LEAPS   50 /* Maximum number of leap second corrections */

Definition at line 125 of file tzfile.h.

#define TZ_MAX_TIMES   1200

Definition at line 103 of file tzfile.h.

#define TZ_MAX_TYPES   256 /* Limited by what (unsigned char)'s can hold */

Definition at line 108 of file tzfile.h.

#define TZDEFAULT   "localtime"

Definition at line 37 of file tzfile.h.

#define TZDEFRULES   "posixrules"

Definition at line 41 of file tzfile.h.

#define TZDIR   "/usr/local/etc/zoneinfo" /* Time zone object file directory */

Definition at line 33 of file tzfile.h.


Variable Documentation

char tzfilehid[] = "@(#)tzfile.h 8.1" [static]

Definition at line 24 of file tzfile.h.