/PHP-8.2/ext/date/lib/ |
H A D | dow.c | 31 static timelib_sll positive_mod(timelib_sll x, timelib_sll y) in positive_mod() 48 static timelib_sll timelib_day_of_week_ex(timelib_sll y, timelib_sll m, timelib_sll d, int iso) in timelib_day_of_week_ex() 67 timelib_sll timelib_day_of_week(timelib_sll y, timelib_sll m, timelib_sll d) in timelib_day_of_week() 72 timelib_sll timelib_iso_day_of_week(timelib_sll y, timelib_sll m, timelib_sll d) in timelib_iso_day_of_week() 83 timelib_sll timelib_day_of_year(timelib_sll y, timelib_sll m, timelib_sll d) in timelib_day_of_year() 88 timelib_sll timelib_days_in_month(timelib_sll y, timelib_sll m) in timelib_days_in_month() 93 void timelib_isoweek_from_date(timelib_sll y, timelib_sll m, timelib_sll d, timelib_sll *iw, timeli… in timelib_isoweek_from_date() 141 void timelib_isodate_from_date(timelib_sll y, timelib_sll m, timelib_sll d, timelib_sll *iy, timeli… in timelib_isodate_from_date() 147 timelib_sll timelib_daynr_from_weeknr(timelib_sll iy, timelib_sll iw, timelib_sll id) in timelib_daynr_from_weeknr() 160 void timelib_date_from_isodate(timelib_sll iy, timelib_sll iw, timelib_sll id, timelib_sll *y, time… in timelib_date_from_isodate() [all …]
|
H A D | timelib.h | 462 timelib_sll timelib_day_of_week(timelib_sll y, timelib_sll m, timelib_sll d); 465 timelib_sll timelib_iso_day_of_week(timelib_sll y, timelib_sll m, timelib_sll d); 469 timelib_sll timelib_day_of_year(timelib_sll y, timelib_sll m, timelib_sll d); 472 timelib_sll timelib_daynr_from_weeknr(timelib_sll iy, timelib_sll iw, timelib_sll id); 475 timelib_sll timelib_days_in_month(timelib_sll y, timelib_sll m); 478 void timelib_isoweek_from_date(timelib_sll y, timelib_sll m, timelib_sll d, timelib_sll *iw, timeli… 482 void timelib_isodate_from_date(timelib_sll y, timelib_sll m, timelib_sll d, timelib_sll *iy, timeli… 485 void timelib_date_from_isodate(timelib_sll iy, timelib_sll iw, timelib_sll id, timelib_sll *y, time… 489 int timelib_valid_time(timelib_sll h, timelib_sll i, timelib_sll s); 679 void timelib_unixtime2date(timelib_sll ts, timelib_sll *y, timelib_sll *m, timelib_sll *d); [all …]
|
H A D | tm2unixtime.c | 32 static void do_range_limit(timelib_sll start, timelib_sll end, timelib_sll adj, timelib_sll *a, tim… in do_range_limit() 52 static void inc_month(timelib_sll *y, timelib_sll *m) in inc_month() 61 static void dec_month(timelib_sll *y, timelib_sll *m) in dec_month() 70 …range_limit_days_relative(timelib_sll *base_y, timelib_sll *base_m, timelib_sll *y, timelib_sll *m… in do_range_limit_days_relative() 72 timelib_sll leapyear; in do_range_limit_days_relative() 73 timelib_sll month, year; in do_range_limit_days_relative() 74 timelib_sll days; in do_range_limit_days_relative() 112 static int do_range_limit_days(timelib_sll *y, timelib_sll *m, timelib_sll *d) in do_range_limit_days() 114 timelib_sll leapyear; in do_range_limit_days() 277 timelib_sll count, dow, rem; in do_adjust_special_weekday() [all …]
|
H A D | parse_posix.c | 135 static timelib_sll read_number(char **ptr) in read_number() 159 static timelib_sll read_offset(char **ptr) in read_offset() 415 static timelib_sll calc_transition(timelib_posix_trans_info *psi, timelib_sll year) in calc_transition() 421 timelib_sll value = (psi->days - 1); in calc_transition() 440 timelib_sll value = 0; in calc_transition() 479 static timelib_sll count_leap_years(timelib_sll y) in count_leap_years() 488 timelib_sll timelib_ts_at_start_of_year(timelib_sll year) in timelib_ts_at_start_of_year() 490 timelib_sll epoch_leap_years = count_leap_years(1970); in timelib_ts_at_start_of_year() 503 timelib_sll trans_end; in timelib_get_transitions_for_year() 531 ttinfo* timelib_fetch_posix_timezone_offset(timelib_tzinfo *tz, timelib_sll ts, timelib_sll *transi… in timelib_fetch_posix_timezone_offset() [all …]
|
H A D | timelib_private.h | 171 timelib_sll timelib_ts_at_start_of_year(timelib_sll year); 172 ttinfo* timelib_fetch_posix_timezone_offset(timelib_tzinfo *tz, timelib_sll ts, timelib_sll *transi… 176 ttinfo* timelib_fetch_timezone_offset(timelib_tzinfo *tz, timelib_sll ts, timelib_sll *transition_t…
|
H A D | unixtime2tm.c | 29 void timelib_unixtime2date(timelib_sll ts, timelib_sll *y, timelib_sll *m, timelib_sll *d) in timelib_unixtime2date() 31 timelib_sll days, era, t; in timelib_unixtime2date() 57 void timelib_unixtime2gmt(timelib_time* tm, timelib_sll ts) in timelib_unixtime2gmt() 59 timelib_sll remainder; in timelib_unixtime2gmt() 60 timelib_sll hours, minutes, seconds; in timelib_unixtime2gmt() 85 timelib_sll sse; in timelib_update_from_sse() 120 void timelib_unixtime2local(timelib_time *tm, timelib_sll ts) in timelib_unixtime2local() 163 void timelib_set_timezone_from_offset(timelib_time *t, timelib_sll utc_offset) in timelib_set_timezone_from_offset()
|
H A D | astro.c | 212 …, int upper_limb, double *h_rise, double *h_set, timelib_sll *ts_rise, timelib_sll *ts_set, timeli… in timelib_astro_rise_set_altitude() 223 timelib_sll timestamp, old_sse; in timelib_astro_rise_set_altitude() 299 double timelib_ts_to_julianday(timelib_sll ts) in timelib_ts_to_julianday() 310 double timelib_ts_to_j2000(timelib_sll ts) in timelib_ts_to_j2000()
|
H A D | timelib.c | 172 timelib_sll ts; in timelib_date_to_int() 227 timelib_sll timelib_hms_to_seconds(timelib_sll h, timelib_sll m, timelib_sll s) in timelib_hms_to_seconds()
|
H A D | interval.c | 74 timelib_sll dst_corr = 0, dst_h_corr = 0, dst_m_corr = 0; in timelib_diff_with_tzid() 76 timelib_sll trans_transition_time; in timelib_diff_with_tzid() 100 timelib_sll flipped = llabs((rt->i * 60) + (rt->s) - dst_corr); in timelib_diff_with_tzid() 271 static void do_range_limit(timelib_sll start, timelib_sll end, timelib_sll adj, timelib_sll *a, tim… in do_range_limit()
|
H A D | parse_tz.c | 474 static char *format_ut_time(timelib_sll ts, timelib_tzinfo *tz) in format_ut_time() 790 ttinfo* timelib_fetch_timezone_offset(timelib_tzinfo *tz, timelib_sll ts, timelib_sll *transition_t… in timelib_fetch_timezone_offset() 854 static tlinfo* fetch_leaptime_offset(timelib_tzinfo *tz, timelib_sll ts) in fetch_leaptime_offset() 870 int timelib_timestamp_is_in_dst(timelib_sll ts, timelib_tzinfo *tz) in timelib_timestamp_is_in_dst() 873 timelib_sll dummy; in timelib_timestamp_is_in_dst() 881 timelib_time_offset *timelib_get_time_zone_info(timelib_sll ts, timelib_tzinfo *tz) in timelib_get_time_zone_info() 888 timelib_sll transition_time; in timelib_get_time_zone_info() 913 int timelib_get_time_zone_offset_info(timelib_sll ts, timelib_tzinfo *tz, int32_t* offset, timelib_… in timelib_get_time_zone_offset_info() 916 timelib_sll tmp_transition_time; in timelib_get_time_zone_offset_info() 937 timelib_sll timelib_get_current_offset(timelib_time *t) in timelib_get_current_offset()
|
H A D | parse_date.re | 404 static timelib_sll timelib_meridian(const char **ptr, timelib_sll h) 406 timelib_sll retval = 0; 1238 timelib_sll i; 1318 timelib_sll i; 1701 timelib_sll w, d; 1720 timelib_sll w, d; 1839 timelib_sll i; 1863 timelib_sll i; 2192 timelib_sll tmp; 2400 timelib_sll min; [all …]
|
H A D | parse_iso_intervals.re | 106 static timelib_sll timelib_get_nr(const char **ptr, int max_length) 110 timelib_sll tmp_nr = TIMELIB_UNSET; 245 timelib_sll nr;
|
H A D | parse_iso_intervals.c | 108 static timelib_sll timelib_get_nr(const char **ptr, int max_length) in timelib_get_nr() 112 timelib_sll tmp_nr = TIMELIB_UNSET; in timelib_get_nr() 294 timelib_sll nr; in scan()
|
H A D | parse_date.c | 406 static timelib_sll timelib_meridian(const char **ptr, timelib_sll h) in timelib_meridian() 408 timelib_sll retval = 0; in timelib_meridian() 435 timelib_sll retval = 0; in timelib_meridian_with_check() 549 timelib_sll tmp_nr = 0; in timelib_get_signed_nr() 7781 timelib_sll i; in scan() 19829 timelib_sll w, d; in scan() 20323 timelib_sll i; in scan() 21166 timelib_sll w, d; in scan() 22484 timelib_sll i; in scan() 23548 timelib_sll i; in scan() [all …]
|
/PHP-8.2/ext/date/ |
H A D | php_date.c | 622 static char *english_suffix(timelib_sll number) in english_suffix() 638 static const char *php_date_full_day_name(timelib_sll y, timelib_sll m, timelib_sll d) in php_date_full_day_name() 647 static const char *php_date_short_day_name(timelib_sll y, timelib_sll m, timelib_sll d) in php_date_short_day_name() 665 timelib_sll isoweek, isoyear; in date_format() 882 timelib_sll isoweek, isoyear; in php_idate() 1087 !preset_ts_is_null ? (timelib_sll) preset_ts : (timelib_sll) php_time()); in PHP_FUNCTION() 2372 timelib_sll new_offset = 0; in php_date_initialize() 4095 timelib_sll start_y, end_y, dummy_m, dummy_d; in PHP_FUNCTION() 4201 timelib_sll value = -1; in date_interval_read_property() 5072 timelib_sll rise, set, transit; in php_do_date_sunrise_sunset() [all …]
|
H A D | php_date.h | 57 timelib_sll utc_offset; /* TIMELIB_ZONETYPE_OFFSET */
|