Asterisk - The Open Source Telephony Project  18.5.0
Data Structures | Macros | Variables
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
 

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   ((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 /* Maximum number of abbreviation characters */
 
#define TZ_MAX_LEAPS   50 /* Maximum number of leap second corrections */
 
#define TZ_MAX_TIMES   1200
 
#define TZ_MAX_TYPES   256 /* Limited by what (unsigned char)'s can hold */
 
#define TZDEFAULT   "localtime"
 
#define TZDEFRULES   "posixrules"
 
#define TZDIR   "/usr/share/zoneinfo"
 

Variables

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

Macro Definition Documentation

◆ DAYSPERLYEAR

#define DAYSPERLYEAR   366

Definition at line 137 of file tzfile.h.

Referenced by timesub().

◆ DAYSPERNYEAR

#define DAYSPERNYEAR   365

Definition at line 136 of file tzfile.h.

Referenced by getrule(), and timesub().

◆ DAYSPERWEEK

#define DAYSPERWEEK   7

Definition at line 135 of file tzfile.h.

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

◆ EPOCH_WDAY

#define EPOCH_WDAY   TM_THURSDAY

Definition at line 166 of file tzfile.h.

Referenced by timesub().

◆ EPOCH_YEAR

#define EPOCH_YEAR   1970

Definition at line 165 of file tzfile.h.

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

◆ HOURSPERDAY

#define HOURSPERDAY   24

Definition at line 134 of file tzfile.h.

Referenced by getsecs(), and time2sub().

◆ isleap

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

Definition at line 168 of file tzfile.h.

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

◆ isleap_sum

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

Definition at line 182 of file tzfile.h.

◆ MINSPERHOUR

#define MINSPERHOUR   60

Definition at line 133 of file tzfile.h.

Referenced by getsecs(), and time2sub().

◆ MONSPERYEAR

#define MONSPERYEAR   12

Definition at line 140 of file tzfile.h.

Referenced by getrule(), and time2sub().

◆ SECSPERDAY

#define SECSPERDAY   ((long) SECSPERHOUR * HOURSPERDAY)

Definition at line 139 of file tzfile.h.

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

◆ SECSPERHOUR

#define SECSPERHOUR   (SECSPERMIN * MINSPERHOUR)

Definition at line 138 of file tzfile.h.

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

◆ SECSPERMIN

#define SECSPERMIN   60

Definition at line 132 of file tzfile.h.

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

◆ TM_APRIL

#define TM_APRIL   3

Definition at line 153 of file tzfile.h.

◆ TM_AUGUST

#define TM_AUGUST   7

Definition at line 157 of file tzfile.h.

◆ TM_DECEMBER

#define TM_DECEMBER   11

Definition at line 161 of file tzfile.h.

◆ TM_FEBRUARY

#define TM_FEBRUARY   1

Definition at line 151 of file tzfile.h.

◆ TM_FRIDAY

#define TM_FRIDAY   5

Definition at line 147 of file tzfile.h.

◆ TM_JANUARY

#define TM_JANUARY   0

Definition at line 150 of file tzfile.h.

◆ TM_JULY

#define TM_JULY   6

Definition at line 156 of file tzfile.h.

◆ TM_JUNE

#define TM_JUNE   5

Definition at line 155 of file tzfile.h.

◆ TM_MARCH

#define TM_MARCH   2

Definition at line 152 of file tzfile.h.

◆ TM_MAY

#define TM_MAY   4

Definition at line 154 of file tzfile.h.

◆ TM_MONDAY

#define TM_MONDAY   1

Definition at line 143 of file tzfile.h.

◆ TM_NOVEMBER

#define TM_NOVEMBER   10

Definition at line 160 of file tzfile.h.

◆ TM_OCTOBER

#define TM_OCTOBER   9

Definition at line 159 of file tzfile.h.

◆ TM_SATURDAY

#define TM_SATURDAY   6

Definition at line 148 of file tzfile.h.

◆ TM_SEPTEMBER

#define TM_SEPTEMBER   8

Definition at line 158 of file tzfile.h.

◆ TM_SUNDAY

#define TM_SUNDAY   0

Definition at line 142 of file tzfile.h.

◆ TM_THURSDAY

#define TM_THURSDAY   4

Definition at line 146 of file tzfile.h.

◆ TM_TUESDAY

#define TM_TUESDAY   2

Definition at line 144 of file tzfile.h.

◆ TM_WEDNESDAY

#define TM_WEDNESDAY   3

Definition at line 145 of file tzfile.h.

◆ TM_YEAR_BASE

#define TM_YEAR_BASE   1900

Definition at line 163 of file tzfile.h.

Referenced by time2sub(), and timesub().

◆ TZ_MAGIC

#define TZ_MAGIC   "TZif"

Definition at line 52 of file tzfile.h.

◆ TZ_MAX_CHARS

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

Definition at line 124 of file tzfile.h.

Referenced by tzload().

◆ TZ_MAX_LEAPS

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

Definition at line 129 of file tzfile.h.

Referenced by tzload().

◆ TZ_MAX_TIMES

#define TZ_MAX_TIMES   1200

Definition at line 107 of file tzfile.h.

Referenced by tzload(), and tzparse().

◆ TZ_MAX_TYPES

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

Definition at line 112 of file tzfile.h.

Referenced by time1(), and tzload().

◆ TZDEFAULT

#define TZDEFAULT   "localtime"

Definition at line 41 of file tzfile.h.

Referenced by common_startup(), and tzload().

◆ TZDEFRULES

#define TZDEFRULES   "posixrules"

Definition at line 45 of file tzfile.h.

Referenced by add_notify(), and tzparse().

◆ TZDIR

#define TZDIR   "/usr/share/zoneinfo"

Definition at line 36 of file tzfile.h.

Referenced by add_notify(), common_startup(), and tzload().

Variable Documentation

◆ tzfilehid

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

Definition at line 24 of file tzfile.h.