Asterisk.org: Developer Documentation (28 Oct 2009)

Wed Oct 28 15:49:23 2009

## Asterisk developer's documentation

# tzfile.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures

struct | tzhead

## Defines

#define | DAYS_PER_LYEAR DAYSPERLYEAR
#define | DAYS_PER_NYEAR DAYSPERNYEAR
#define | DAYS_PER_WEEK DAYSPERWEEK
#define | DAYSPERLYEAR 366
#define | DAYSPERNYEAR 365
#define | DAYSPERWEEK 7
#define | EPOCH_WDAY TM_THURSDAY
#define | EPOCH_YEAR 1970
#define | HOURS_PER_DAY HOURSPERDAY
#define | HOURSPERDAY 24
#define | isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0))
#define | MINS_PER_HOUR MINSPERHOUR
#define | MINSPERHOUR 60
#define | MONS_PER_YEAR MONSPERYEAR
#define | MONSPERYEAR 12
#define | SECS_PER_DAY SECSPERDAY
#define | SECS_PER_HOUR SECSPERHOUR
#define | SECS_PER_MIN SECSPERMIN
#define | SECSPERDAY ((long) 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
#define | TZ_MAX_LEAPS 50
#define | TZ_MAX_TIMES 370
#define | TZ_MAX_TYPES 256
#define | TZDEFAULT "/etc/localtime"
#define | TZDEFRULES "posixrules"
#define | TZDIR "/usr/share/zoneinfo"
| This file is in the public domain, so clarified as of 1996-06-05 by.

## Define Documentation

#define DAYS_PER_LYEAR DAYSPERLYEAR

Definition at line 182 of file tzfile.h.

#define DAYS_PER_NYEAR DAYSPERNYEAR

Definition at line 181 of file tzfile.h.

#define DAYS_PER_WEEK DAYSPERWEEK

Definition at line 180 of file tzfile.h.

#define DAYSPERLYEAR 366

Definition at line 129 of file tzfile.h.

Referenced by getrule(), and time2().

#define DAYSPERNYEAR 365

Definition at line 128 of file tzfile.h.

Referenced by getrule(), and timesub().

#define DAYSPERWEEK 7

Definition at line 127 of file tzfile.h.

Referenced by getrule(), getsecs(), timesub(), and transtime().

#define EPOCH_WDAY TM_THURSDAY

Definition at line 158 of file tzfile.h.

Referenced by timesub().

#define EPOCH_YEAR 1970

Definition at line 157 of file tzfile.h.

Referenced by time2(), timesub(), and tzparse().

#define HOURS_PER_DAY HOURSPERDAY

Definition at line 179 of file tzfile.h.

#define HOURSPERDAY 24

Definition at line 126 of file tzfile.h.

Referenced by getsecs(), and time2().

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

Definition at line 165 of file tzfile.h.

Referenced by time2(), timesub(), transtime(), and tzparse().

#define MINS_PER_HOUR MINSPERHOUR

Definition at line 178 of file tzfile.h.

#define MINSPERHOUR 60

Definition at line 125 of file tzfile.h.

Referenced by getsecs(), and time2().

#define MONS_PER_YEAR MONSPERYEAR

Definition at line 185 of file tzfile.h.

#define MONSPERYEAR 12

Definition at line 132 of file tzfile.h.

Referenced by getrule(), and time2().

#define SECS_PER_DAY SECSPERDAY

Definition at line 184 of file tzfile.h.

#define SECS_PER_HOUR SECSPERHOUR

Definition at line 183 of file tzfile.h.

#define SECS_PER_MIN SECSPERMIN

Definition at line 177 of file tzfile.h.

#define SECSPERDAY ((long) SECSPERHOUR * HOURSPERDAY)

Definition at line 131 of file tzfile.h.

Referenced by timesub(), transtime(), and tzparse().

#define SECSPERHOUR (SECSPERMIN * MINSPERHOUR)

Definition at line 130 of file tzfile.h.

Referenced by getrule(), getsecs(), timesub(), and tzparse().

#define SECSPERMIN 60

Definition at line 124 of file tzfile.h.

Referenced by getsecs(), time2(), and timesub().

#define TM_APRIL 3

Definition at line 145 of file tzfile.h.

#define TM_AUGUST 7

Definition at line 149 of file tzfile.h.

#define TM_DECEMBER 11

Definition at line 153 of file tzfile.h.

#define TM_FEBRUARY 1

Definition at line 143 of file tzfile.h.

#define TM_FRIDAY 5

Definition at line 139 of file tzfile.h.

#define TM_JANUARY 0

Definition at line 142 of file tzfile.h.

#define TM_JULY 6

Definition at line 148 of file tzfile.h.

#define TM_JUNE 5

Definition at line 147 of file tzfile.h.

#define TM_MARCH 2

Definition at line 144 of file tzfile.h.

#define TM_MAY 4

Definition at line 146 of file tzfile.h.

#define TM_MONDAY 1

Definition at line 135 of file tzfile.h.

#define TM_NOVEMBER 10

Definition at line 152 of file tzfile.h.

#define TM_OCTOBER 9

Definition at line 151 of file tzfile.h.

#define TM_SATURDAY 6

Definition at line 140 of file tzfile.h.

#define TM_SEPTEMBER 8

Definition at line 150 of file tzfile.h.

#define TM_SUNDAY 0

Definition at line 134 of file tzfile.h.

#define TM_THURSDAY 4

Definition at line 138 of file tzfile.h.

#define TM_TUESDAY 2

Definition at line 136 of file tzfile.h.

#define TM_WEDNESDAY 3

Definition at line 137 of file tzfile.h.

#define TM_YEAR_BASE 1900

Definition at line 155 of file tzfile.h.

Referenced by time2(), and timesub().

#define TZ_MAGIC "TZif"

Definition at line 49 of file tzfile.h.

#define TZ_MAX_CHARS 50

Definition at line 116 of file tzfile.h.

Referenced by tzload().

#define TZ_MAX_LEAPS 50

Definition at line 121 of file tzfile.h.

Referenced by tzload().

#define TZ_MAX_TIMES 370

Definition at line 99 of file tzfile.h.

Referenced by tzload(), and tzparse().

#define TZ_MAX_TYPES 256

Definition at line 104 of file tzfile.h.

Referenced by tzload().

#define TZDEFAULT "/etc/localtime"

Definition at line 38 of file tzfile.h.

Referenced by tzload().

#define TZDEFRULES "posixrules"

Definition at line 42 of file tzfile.h.

Referenced by tzparse().

#define TZDIR "/usr/share/zoneinfo"

This file is in the public domain, so clarified as of 1996-06-05 by.

Author:
  Arthur David Olson (arthur_david_olson@nih.gov).

Note:
  This header is for use ONLY with the time conversion code. There is no guarantee that it will remain unchanged, or that it will remain at all. Do NOT copy it to any system include directory. Thank you! Time zone object file directory

Definition at line 34 of file tzfile.h.