TZ-Lib
$VERSION$
|
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 */ |
#define DAYSPERLYEAR 366 |
Referenced by _fmt(), getrule(), time2sub(), and timesub().
#define DAYSPERWEEK 7 |
Referenced by _fmt(), asctime_r(), getrule(), getsecs(), stringoffset(), stringrule(), timesub(), and transtime().
#define EPOCH_WDAY TM_THURSDAY |
#define EPOCH_YEAR 1970 |
#define HOURSPERDAY 24 |
Referenced by _fmt(), gethms(), getsecs(), stringoffset(), and time2sub().
#define isleap | ( | y | ) | (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) |
Referenced by inleap(), rpytime(), time2sub(), timesub(), transtime(), and tzparse().
#define MINSPERHOUR 60 |
Referenced by _fmt(), abbroffset(), gethms(), getsecs(), stringoffset(), stringrule(), stringzone(), and time2sub().
#define MONSPERYEAR 12 |
Referenced by _fmt(), asctime_r(), getrule(), and time2sub().
#define SECSPERDAY ((int_fast32_t) SECSPERHOUR * HOURSPERDAY) |
Referenced by inleap(), rpytime(), stringrule(), stringzone(), time2sub(), timesub(), transtime(), and tzparse().
#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 |
Referenced by _fmt(), inleap(), outzone(), rpytime(), and stringzone().
#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().
Referenced by main(), and tzloadbody().