PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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 TZDEFAULT   "localtime"
 
#define TZDEFRULES   "posixrules"
 
#define TZ_MAGIC   "TZif"
 
#define TZ_MAX_TIMES   2000
 
#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   ((int32) 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)
 

Macro Definition Documentation

#define DAYSPERLYEAR   366

Definition at line 108 of file tzfile.h.

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

#define DAYSPERNYEAR   365

Definition at line 107 of file tzfile.h.

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

#define DAYSPERWEEK   7

Definition at line 106 of file tzfile.h.

Referenced by _fmt(), getrule(), getsecs(), stringoffset(), stringrule(), timesub(), and transtime().

#define EPOCH_WDAY   TM_THURSDAY

Definition at line 137 of file tzfile.h.

Referenced by rpytime(), and timesub().

#define EPOCH_YEAR   1970

Definition at line 136 of file tzfile.h.

Referenced by inleap(), outzone(), rpytime(), timesub(), and tzparse().

#define HOURSPERDAY   24

Definition at line 105 of file tzfile.h.

Referenced by _fmt(), gethms(), getsecs(), and stringoffset().

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

Definition at line 139 of file tzfile.h.

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

Definition at line 153 of file tzfile.h.

Referenced by _fmt().

#define MINSPERHOUR   60

Definition at line 104 of file tzfile.h.

Referenced by _fmt(), abbroffset(), gethms(), getsecs(), stringoffset(), stringrule(), and stringzone().

#define MONSPERYEAR   12

Definition at line 111 of file tzfile.h.

Referenced by _fmt(), and getrule().

#define SECSPERDAY   ((int32) SECSPERHOUR * HOURSPERDAY)

Definition at line 110 of file tzfile.h.

Referenced by inleap(), rpytime(), stringrule(), stringzone(), timesub(), transtime(), and tzparse().

#define SECSPERHOUR   (SECSPERMIN * MINSPERHOUR)

Definition at line 109 of file tzfile.h.

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

#define SECSPERMIN   60
#define TM_APRIL   3

Definition at line 124 of file tzfile.h.

#define TM_AUGUST   7

Definition at line 128 of file tzfile.h.

#define TM_DECEMBER   11

Definition at line 132 of file tzfile.h.

Referenced by stringzone().

#define TM_FEBRUARY   1

Definition at line 122 of file tzfile.h.

Referenced by rpytime(), and stringrule().

#define TM_FRIDAY   5

Definition at line 118 of file tzfile.h.

#define TM_JANUARY   0

Definition at line 121 of file tzfile.h.

Referenced by inleap(), outzone(), rpytime(), and stringzone().

#define TM_JULY   6

Definition at line 127 of file tzfile.h.

#define TM_JUNE   5

Definition at line 126 of file tzfile.h.

#define TM_MARCH   2

Definition at line 123 of file tzfile.h.

#define TM_MAY   4

Definition at line 125 of file tzfile.h.

#define TM_MONDAY   1

Definition at line 114 of file tzfile.h.

#define TM_NOVEMBER   10

Definition at line 131 of file tzfile.h.

#define TM_OCTOBER   9

Definition at line 130 of file tzfile.h.

#define TM_SATURDAY   6

Definition at line 119 of file tzfile.h.

#define TM_SEPTEMBER   8

Definition at line 129 of file tzfile.h.

#define TM_SUNDAY   0

Definition at line 113 of file tzfile.h.

#define TM_THURSDAY   4

Definition at line 117 of file tzfile.h.

#define TM_TUESDAY   2

Definition at line 115 of file tzfile.h.

#define TM_WEDNESDAY   3

Definition at line 116 of file tzfile.h.

#define TM_YEAR_BASE   1900

Definition at line 134 of file tzfile.h.

Referenced by _fmt(), and timesub().

#define TZ_MAGIC   "TZif"

Definition at line 31 of file tzfile.h.

Referenced by writezone().

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

Definition at line 98 of file tzfile.h.

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

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

Definition at line 101 of file tzfile.h.

Referenced by leapadd(), and tzloadbody().

#define TZ_MAX_TIMES   2000

Definition at line 93 of file tzfile.h.

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

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

Definition at line 96 of file tzfile.h.

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

#define TZDEFAULT   "localtime"

Definition at line 24 of file tzfile.h.

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

#define TZDEFRULES   "posixrules"

Definition at line 25 of file tzfile.h.

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