Defines |
#define | CHEAT_DAYS (1199145600 / 24 / 60 / 60) |
#define | CHEAT_YEARS 108 |
#define | days_in_gregorian_cycle ((365 * 400) + 100 - 4 + 1) |
#define | IS_LEAP(n) ((!(((n) + 1900) % 400) || (!(((n) + 1900) % 4) && (((n) + 1900) % 100))) != 0) |
#define | MAX_SAFE_YEAR 2037 |
#define | MIN_SAFE_YEAR 1971 |
#define | SHOULD_USE_SYSTEM_GMTIME(a) (0) |
#define | SHOULD_USE_SYSTEM_LOCALTIME(a) (0) |
#define | SOLAR_CYCLE_LENGTH 28 |
#define | TIME64_TRACE(format) ((void)0) |
#define | TIME64_TRACE1(format, var1) ((void)0) |
#define | TIME64_TRACE2(format, var1, var2) ((void)0) |
#define | TIME64_TRACE3(format, var1, var2, var3) ((void)0) |
#define | WRAP(a, b, m) ((a) = ((a) < 0 ) ? ((b)--, (a) + (m)) : (a)) |
Functions |
char * | asctime64 (const struct TM *date) |
char * | asctime64_r (const struct TM *date, char *result) |
static int | check_tm (struct TM *tm) |
int | cmp_date (const struct TM *left, const struct tm *right) |
void | copy_TM64_to_tm (const struct TM *src, struct tm *dest) |
void | copy_tm_to_TM64 (const struct tm *src, struct TM *dest) |
char * | ctime64 (const Time64_T *time) |
char * | ctime64_r (const Time64_T *time, char *result) |
static Year | cycle_offset (Year year) |
int | date_in_safe_range (const struct TM *date, const struct tm *min, const struct tm *max) |
struct tm * | fake_gmtime_r (const time_t *time, struct tm *result) |
struct tm * | fake_localtime_r (const time_t *time, struct tm *result) |
struct TM * | gmtime64 (const Time64_T *time) |
struct TM * | gmtime64_r (const Time64_T *in_time, struct TM *p) |
static int | is_exception_century (Year year) |
struct TM * | localtime64 (const Time64_T *time) |
struct TM * | localtime64_r (const Time64_T *time, struct TM *local_tm) |
Time64_T | mktime64 (const struct TM *input_date) |
static int | safe_year (const Year year) |
static Time64_T | seconds_between_years (Year left_year, Year right_year) |
Time64_T | timegm64 (const struct TM *date) |
Time64_T | timelocal64 (const struct TM *date) |
int | valid_tm_mon (const struct TM *date) |
int | valid_tm_wday (const struct TM *date) |
Variables |
static const int | days_in_month [2][12] |
static const int | dow_year_start [SOLAR_CYCLE_LENGTH] |
static const int | julian_days_by_month [2][12] |
static const int | length_of_year [2] = { 365, 366 } |
static char | mon_name [12][4] |
static const int | safe_years_high [SOLAR_CYCLE_LENGTH] |
static const int | safe_years_low [SOLAR_CYCLE_LENGTH] |
static const Time64_T | seconds_in_gregorian_cycle = days_in_gregorian_cycle * 60LL * 60LL * 24LL |
static struct TM | Static_Return_Date |
static char | Static_Return_String [35] |
static char | wday_name [7][4] |
static const Year | years_in_gregorian_cycle = 400 |