32 timelib_ull day_of_era, year_of_era, day_of_year, month_portion;
39 days += (t < 0) ? -1 : 0;
45 year_of_era = (day_of_era - day_of_era / 1460 + day_of_era / 36524 - day_of_era / 146096) /
DAYS_PER_YEAR;
47 day_of_year = day_of_era - (
DAYS_PER_YEAR * year_of_era + year_of_era / 4 - year_of_era / 100);
48 month_portion = (5 * day_of_year + 2) / 153;
49 *d = day_of_year - (153 * month_portion + 2) / 5 + 1;
50 *m = month_portion + (month_portion < 10 ? 3 : -9);
67 hours = remainder / 3600;
68 minutes = (remainder - hours * 3600) / 60;
69 seconds = remainder % 60;
87 signed int dst = tm->
dst;
129 signed int dst = tm->
dst;
printf(string $format, mixed ... $values)
timelib_time_offset * timelib_get_time_zone_info(timelib_sll ts, timelib_tzinfo *tz)
int timelib_get_time_zone_offset_info(timelib_sll ts, timelib_tzinfo *tz, int32_t *offset, timelib_sll *transition_time, unsigned int *is_dst)
localtime(?int $timestamp=null, bool $associative=false)
unsigned int is_localtime
unsigned int tim_uptodate
unsigned int sse_uptodate
void timelib_time_offset_dtor(timelib_time_offset *t)
void timelib_time_tz_abbr_update(timelib_time *tm, const char *tz_abbr)
#define TIMELIB_ZONETYPE_ID
unsigned long long timelib_ull
#define TIMELIB_ZONETYPE_OFFSET
struct _timelib_time timelib_time
signed long long timelib_sll
struct _timelib_time_offset timelib_time_offset
struct _timelib_tzinfo timelib_tzinfo
#define TIMELIB_ZONETYPE_ABBR
struct _timelib_abbr_info timelib_abbr_info
#define HINNANT_EPOCH_SHIFT
void timelib_unixtime2local(timelib_time *tm, timelib_sll ts)
void timelib_unixtime2gmt(timelib_time *tm, timelib_sll ts)
void timelib_set_timezone_from_offset(timelib_time *t, timelib_sll utc_offset)
void timelib_unixtime2date(timelib_sll ts, timelib_sll *y, timelib_sll *m, timelib_sll *d)
void timelib_update_from_sse(timelib_time *tm)
void timelib_set_timezone(timelib_time *t, timelib_tzinfo *tz)
int timelib_apply_localtime(timelib_time *t, unsigned int localtime)
void timelib_set_timezone_from_abbr(timelib_time *t, timelib_abbr_info abbr_info)