TZ-Lib  $VERSION$
db/tzfile.h File Reference

Go to the source code of this file.

Classes

struct  tzhead
 

Macros

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

Macro Definition Documentation

#define DAYSPERLYEAR   366

Referenced by _fmt(), getrule(), time2sub(), and timesub().

#define DAYSPERNYEAR   365

Referenced by _fmt(), getrule(), and timesub().

#define DAYSPERWEEK   7
#define EPOCH_WDAY   TM_THURSDAY

Referenced by rpytime(), and timesub().

#define EPOCH_YEAR   1970
#define HOURSPERDAY   24
#define isleap (   y)    (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0))
#define isleap_sum (   a,
 
)    isleap((a) % 400 + (b) % 400)

Referenced by _fmt().

#define MINSPERHOUR   60
#define MONSPERYEAR   12

Referenced by _fmt(), asctime_r(), getrule(), and time2sub().

#define SECSPERHOUR   (SECSPERMIN * MINSPERHOUR)
#define SECSPERMIN   60
#define TM_APRIL   3
#define TM_AUGUST   7
#define TM_DECEMBER   11

Referenced by _fmt(), and stringzone().

#define TM_FEBRUARY   1

Referenced by rpytime(), and stringrule().

#define TM_FRIDAY   5
#define TM_JANUARY   0
#define TM_JULY   6
#define TM_JUNE   5
#define TM_MARCH   2
#define TM_MAY   4
#define TM_MONDAY   1
#define TM_NOVEMBER   10
#define TM_OCTOBER   9
#define TM_SATURDAY   6
#define TM_SEPTEMBER   8
#define TM_SUNDAY   0
#define TM_THURSDAY   4
#define TM_TUESDAY   2
#define TM_WEDNESDAY   3
#define TM_YEAR_BASE   1900
#define TZ_MAGIC   "TZif"

Referenced by writezone().

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

Referenced by newabbr(), tzloadbody(), and writezone().

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

Referenced by leapadd(), and tzloadbody().

#define TZ_MAX_TIMES   2000

Referenced by tzloadbody(), tzparse(), and writezone().

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

Referenced by addtype(), time1(), tzloadbody(), and writezone().

#define TZDEFAULT   "localtime"

Referenced by inzone(), main(), and tzloadbody().

#define TZDEFRULES   "posixrules"

Referenced by inzone(), main(), and tzparse().

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

Referenced by main(), and tzloadbody().