/PHP-7.4/ |
H A D | .gdbinit | 6 set the ts resource, it is impossible for gdb to
|
/PHP-7.4/TSRM/ |
H A D | TSRM.h | 87 #define THREAD_HASH_OF(thr,ts) (unsigned long)thr%(unsigned long)ts argument
|
/PHP-7.4/ext/calendar/ |
H A D | cal_unix.c | 32 time_t ts = 0; in PHP_FUNCTION() local 41 ts = time(NULL); in PHP_FUNCTION() 43 ts = (time_t) tl; in PHP_FUNCTION() 48 if (!(ta = php_localtime_r(&ts, &tmbuf))) { in PHP_FUNCTION()
|
/PHP-7.4/ext/date/lib/ |
H A D | astro.c | 299 double timelib_ts_to_julianday(timelib_sll ts) in timelib_ts_to_julianday() argument 303 tmp = (double) ts; in timelib_ts_to_julianday() 310 double timelib_ts_to_j2000(timelib_sll ts) in timelib_ts_to_j2000() argument 312 return timelib_ts_to_julianday(ts) - 2451545; in timelib_ts_to_j2000()
|
H A D | astro.h | 55 #define timelib_astro_sun_rise_set(ts,lon,lat,hrise,hset,rise,set) \ argument 56 timelib_astro_rise_set_altitude( ts, lon, lat, -35.0/60.0, 1, hrise, hset, rise, set ) 61 #define civil_twilight(ts,lon,lat,start,end) \ argument 62 timelib_astro_rise_set_altitude( ts, lon, lat, -6.0, 0, start, end ) 67 #define nautical_twilight(ts,lon,lat,start,end) \ argument 68 timelib_astro_rise_set_altitude( ts, lon, lat, -12.0, 0, start, end ) 73 #define astronomical_twilight(ts,lon,lat,start,end) \ argument 74 timelib_astro_rise_set_altitude( ts, lon, lat, -18.0, 0, start, end )
|
H A D | parse_tz.c | 600 static ttinfo* fetch_timezone_offset(timelib_tzinfo *tz, timelib_sll ts, timelib_sll *transition_ti… in fetch_timezone_offset() argument 618 if (ts < tz->trans[0]) { in fetch_timezone_offset() 626 if (ts < tz->trans[i]) { in fetch_timezone_offset() 635 static tlinfo* fetch_leaptime_offset(timelib_tzinfo *tz, timelib_sll ts) in fetch_leaptime_offset() argument 644 if (ts > tz->leap_times[i].trans) { in fetch_leaptime_offset() 651 int timelib_timestamp_is_in_dst(timelib_sll ts, timelib_tzinfo *tz) in timelib_timestamp_is_in_dst() argument 656 if ((to = fetch_timezone_offset(tz, ts, &dummy))) { in timelib_timestamp_is_in_dst() 662 timelib_time_offset *timelib_get_time_zone_info(timelib_sll ts, timelib_tzinfo *tz) in timelib_get_time_zone_info() argument 671 if ((to = fetch_timezone_offset(tz, ts, &transition_time))) { in timelib_get_time_zone_info() 683 if ((tl = fetch_leaptime_offset(tz, ts))) { in timelib_get_time_zone_info()
|
H A D | timelib.c | 169 timelib_sll ts; in timelib_date_to_int() local 171 ts = d->sse; in timelib_date_to_int() 173 if (ts < TIMELIB_LONG_MIN || ts > TIMELIB_LONG_MAX) { in timelib_date_to_int()
|
H A D | timelib.h | 617 void timelib_unixtime2gmt(timelib_time* tm, timelib_sll ts); 623 void timelib_unixtime2local(timelib_time *tm, timelib_sll ts); 705 int timelib_timestamp_is_in_dst(timelib_sll ts, timelib_tzinfo *tz); 715 timelib_time_offset *timelib_get_time_zone_info(timelib_sll ts, timelib_tzinfo *tz); 895 double timelib_ts_to_julianday(timelib_sll ts); 903 double timelib_ts_to_j2000(timelib_sll ts);
|
H A D | unixtime2tm.c | 33 void timelib_unixtime2gmt(timelib_time* tm, timelib_sll ts) in timelib_unixtime2gmt() argument 41 days = ts / SECS_PER_DAY; in timelib_unixtime2gmt() 42 remainder = ts - (days * SECS_PER_DAY); in timelib_unixtime2gmt() 43 if (ts < 0 && remainder == 0) { in timelib_unixtime2gmt() 49 if (ts >= 0) { in timelib_unixtime2gmt() 61 if (ts >= 0) { in timelib_unixtime2gmt() 113 tm->sse = ts; in timelib_unixtime2gmt() 170 tm->sse = ts; in timelib_unixtime2local() 177 gmt_offset = timelib_get_time_zone_info(ts, tz); in timelib_unixtime2local() 178 timelib_unixtime2gmt(tm, ts + gmt_offset->offset); in timelib_unixtime2local() [all …]
|
/PHP-7.4/ext/date/ |
H A D | php_date.c | 1282 zend_long ts; in php_date() local 1287 Z_PARAM_LONG(ts) in php_date() 1704 ta.tm_wday = timelib_day_of_week(ts->y, ts->m, ts->d); in php_strftime() 1705 ta.tm_yday = timelib_day_of_year(ts->y, ts->m, ts->d); in php_strftime() 1821 add_assoc_long(return_value, "tm_wday", timelib_day_of_week(ts->y, ts->m, ts->d)); in PHP_FUNCTION() 1822 add_assoc_long(return_value, "tm_yday", timelib_day_of_year(ts->y, ts->m, ts->d)); in PHP_FUNCTION() 1831 add_next_index_long(return_value, timelib_day_of_week(ts->y, ts->m, ts->d)); in PHP_FUNCTION() 1832 add_next_index_long(return_value, timelib_day_of_year(ts->y, ts->m, ts->d)); in PHP_FUNCTION() 1869 add_assoc_long(return_value, "wday", timelib_day_of_week(ts->y, ts->m, ts->d)); in PHP_FUNCTION() 1872 add_assoc_long(return_value, "yday", timelib_day_of_year(ts->y, ts->m, ts->d)); in PHP_FUNCTION() [all …]
|
H A D | php_date.h | 206 PHPAPI int php_idate(char format, time_t ts, int localtime); 211 PHPAPI zend_string *php_format_date(char *format, size_t format_len, time_t ts, int localtime);
|
/PHP-7.4/ext/date/tests/ |
H A D | DateTimeZone_getTransitions_basic1.phpt | 39 ["ts"]=>
|
H A D | bug20382-2.phpt | 48 ts = Monday 2037-10-19 17:17:17 CEST 53 ts = Thursday 1970-01-01 17:17:17 %s 58 ts = Thursday 1970-01-01 17:17:17 %s 73 ts = Monday 1983-04-11 17:17:17 CET 78 ts = Monday 2037-10-19 17:17:17 +04 113 ts = Monday 1971-03-29 17:17:17 AST 118 ts = Friday 1971-01-01 17:17:17 +04 123 ts = Friday 1971-01-01 17:17:17 CET 133 ts = Friday 1971-01-01 17:17:17 %s 153 ts = Monday 1974-09-30 17:17:17 %s [all …]
|
H A D | bug30096.phpt | 8 $ts = -1; 15 $ts = -1; 22 global $ts, $tsold; 26 $tsold = $ts; 27 $ts = gmmktime($hour, $minute, $second, $month, $day, $year); 29 echo $ts, " | gmdate('r', $ts):", gmdate('r', $ts); 31 echo " | Diff: " . ($ts - $tsold);
|
H A D | bug35885.phpt | 8 $ts = date(DATE_ISO8601, strtotime('NOW', $time)); 11 $res = ($ts == $ts2); 15 var_dump($ts);
|
H A D | bug40861.phpt | 8 $ts = strtotime('2000-01-01 12:00:00'); 9 $result = date("Y-m-d H:i:s", strtotime("+$offset minutes", $ts)); 13 $ts = strtotime('2000-01-01 12:00:00'); 14 $result = date("Y-m-d H:i:s", strtotime("+$offset minutes", $ts)); 18 $ts = strtotime('2000-01-01 12:00:00'); 19 $result = date("Y-m-d H:i:s", strtotime("-$offset minutes", $ts)); 24 $ts = strtotime('2000-01-01 12:00:00'); 25 $result = date("Y-m-d H:i:s", strtotime("+$offset minutes", $ts));
|
H A D | bug48058.phpt | 18 ["ts"]=>
|
H A D | bug52290.phpt | 8 $ts = strtotime('2006-01-01'); 9 $dt = new DateTime('@'.$ts);
|
H A D | bug60236.phpt | 8 $ts = $t->format('U'); 9 var_dump($ts); 10 $t->setTimestamp($ts);
|
H A D | bug62561.phpt | 6 $ts = new DateTime('@1341115200', $tz); 11 echo 'ts: '.$ts->format('Y-m-d H:i:s')."\n"; 12 echo 'day from ts: '.$dayFromTs->format('Y-m-d H:i:s')."\n"; 15 ts: 2012-07-01 04:00:00 16 day from ts: 2012-07-02 04:00:00
|
H A D | date_modify-1.phpt | 6 $ts = date_create("Fri Aug 20 1993 23:59:59"); 7 echo date_format($ts, 'D, d M Y H:i:s T'), "\n"; 8 $ts->modify("+1 second"); 9 echo date_format($ts, 'D, d M Y H:i:s T'), "\n"; 12 $ts = date_create("Sun Mar 27 01:59:59 2005"); 13 echo date_format($ts, 'D, d M Y H:i:s T'), "\n"; 14 $ts->modify("+1 second"); 15 echo date_format($ts, 'D, d M Y H:i:s T'), "\n"; 17 $ts = date_create("Sun Oct 30 01:59:59 2005"); 18 echo date_format($ts, 'D, d M Y H:i:s T'), "\n"; [all …]
|
H A D | timezone_transitions_get_basic1.phpt | 42 ["ts"]=>
|
/PHP-7.4/ext/ffi/tests/ |
H A D | utils.inc | 15 … return "php" . PHP_MAJOR_VERSION . (PHP_ZTS ? "ts" : "") . (PHP_DEBUG ? "_debug" : "") . ".dll";
|
/PHP-7.4/ext/fileinfo/ |
H A D | libmagic.patch | 1301 - struct timespec ts; 1302 + struct timeval ts; 1319 - struct timespec ts; 1320 + struct timeval ts; 1335 cdf_ctime(&ts.tv_sec, tbuf)); 1382 - if (gmtime_r(&ts->ts_sec, &tm) == NULL) { 1383 + if (php_gmtime_r(&ts->ts_sec, &tm) == NULL) { 3215 + memset(&ts, 0, sizeof(ts));
|
/PHP-7.4/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 787 size_t ts, v; in apprentice_magic_strength() local 830 ts = typesize(m->type); in apprentice_magic_strength() 831 if (ts == CAST(size_t, ~0)) in apprentice_magic_strength() 833 val += ts * MULT; in apprentice_magic_strength() 2642 size_t ts = typesize(m->type); in getvalue() local 2646 if (ts == CAST(size_t, ~0)) { in getvalue() 2655 switch (ts) { in getvalue()
|