Header And Logo

PostgreSQL
| The world's most advanced open source database.

Data Structures | Defines

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 TZDEFAULT   "localtime"
#define TZDEFRULES   "posixrules"
#define TZ_MAGIC   "TZif"
#define TZ_MAX_TIMES   1200
#define TZ_MAX_TYPES   256
#define TZ_MAX_CHARS   50
#define TZ_MAX_LEAPS   50
#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)

Define Documentation

#define DAYSPERLYEAR   366

Definition at line 101 of file tzfile.h.

Referenced by _fmt(), and getrule().

#define DAYSPERNYEAR   365

Definition at line 100 of file tzfile.h.

Referenced by getrule(), and timesub().

#define DAYSPERWEEK   7

Definition at line 99 of file tzfile.h.

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

#define EPOCH_WDAY   TM_THURSDAY

Definition at line 130 of file tzfile.h.

Referenced by rpytime(), and timesub().

#define EPOCH_YEAR   1970

Definition at line 129 of file tzfile.h.

Referenced by timesub(), and tzparse().

#define HOURSPERDAY   24

Definition at line 98 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 132 of file tzfile.h.

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

Definition at line 146 of file tzfile.h.

Referenced by _fmt().

#define MINSPERHOUR   60

Definition at line 97 of file tzfile.h.

Referenced by gethms(), getsecs(), stringrule(), and stringzone().

#define MONSPERYEAR   12

Definition at line 104 of file tzfile.h.

Referenced by _fmt(), and getrule().

#define SECSPERDAY   ((long) SECSPERHOUR * HOURSPERDAY)

Definition at line 103 of file tzfile.h.

Referenced by inleap(), rpytime(), and transtime().

#define SECSPERHOUR   (SECSPERMIN * MINSPERHOUR)

Definition at line 102 of file tzfile.h.

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

#define SECSPERMIN   60

Definition at line 96 of file tzfile.h.

Referenced by gethms(), stringrule(), stringzone(), and timesub().

#define TM_APRIL   3

Definition at line 117 of file tzfile.h.

#define TM_AUGUST   7

Definition at line 121 of file tzfile.h.

#define TM_DECEMBER   11

Definition at line 125 of file tzfile.h.

#define TM_FEBRUARY   1

Definition at line 115 of file tzfile.h.

Referenced by rpytime(), and stringrule().

#define TM_FRIDAY   5

Definition at line 111 of file tzfile.h.

#define TM_JANUARY   0

Definition at line 114 of file tzfile.h.

#define TM_JULY   6

Definition at line 120 of file tzfile.h.

#define TM_JUNE   5

Definition at line 119 of file tzfile.h.

#define TM_MARCH   2

Definition at line 116 of file tzfile.h.

#define TM_MAY   4

Definition at line 118 of file tzfile.h.

#define TM_MONDAY   1

Definition at line 107 of file tzfile.h.

#define TM_NOVEMBER   10

Definition at line 124 of file tzfile.h.

#define TM_OCTOBER   9

Definition at line 123 of file tzfile.h.

#define TM_SATURDAY   6

Definition at line 112 of file tzfile.h.

#define TM_SEPTEMBER   8

Definition at line 122 of file tzfile.h.

#define TM_SUNDAY   0

Definition at line 106 of file tzfile.h.

#define TM_THURSDAY   4

Definition at line 110 of file tzfile.h.

#define TM_TUESDAY   2

Definition at line 108 of file tzfile.h.

#define TM_WEDNESDAY   3

Definition at line 109 of file tzfile.h.

#define TM_YEAR_BASE   1900

Definition at line 127 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

Definition at line 91 of file tzfile.h.

Referenced by newabbr(), and tzload().

#define TZ_MAX_LEAPS   50

Definition at line 94 of file tzfile.h.

Referenced by leapadd(), and tzload().

#define TZ_MAX_TIMES   1200

Definition at line 87 of file tzfile.h.

Referenced by addtt(), and tzload().

#define TZ_MAX_TYPES   256

Definition at line 89 of file tzfile.h.

Referenced by addtype(), and tzload().

#define TZDEFAULT   "localtime"

Definition at line 24 of file tzfile.h.

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

#define TZDEFRULES   "posixrules"

Definition at line 25 of file tzfile.h.

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