Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 25 of 144) sorted by path

123456

/PHP-5.5/
H A D.gdbinit6 set the ts resource, it is impossible for gdb to
H A DREADME.WIN32-BUILD-SYSTEM5 vim:tw=78:sw=1:ts=1:et
/PHP-5.5/TSRM/
H A DTSRM.h100 #define THREAD_HASH_OF(thr,ts) (unsigned long)thr%(unsigned long)ts argument
/PHP-5.5/ext/calendar/
H A Dcal_unix.c31 time_t ts = 0; in PHP_FUNCTION() local
34 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &ts) == FAILURE) { in PHP_FUNCTION()
38 if (!ts) { in PHP_FUNCTION()
39 ts = time(NULL); in PHP_FUNCTION()
40 } else if (ts < 0) { in PHP_FUNCTION()
44 if (!(ta = php_localtime_r(&ts, &tmbuf))) { in PHP_FUNCTION()
/PHP-5.5/ext/date/lib/
H A Dastro.c293 double timelib_ts_to_juliandate(timelib_sll ts) in timelib_ts_to_juliandate() argument
297 tmp = ts; in timelib_ts_to_juliandate()
H A Dastro.h31 #define timelib_astro_sun_rise_set(ts,lon,lat,hrise,hset,rise,set) \ argument
32 timelib_astro_rise_set_altitude( ts, lon, lat, -35.0/60.0, 1, hrise, hset, rise, set )
37 #define civil_twilight(ts,lon,lat,start,end) \ argument
38 timelib_astro_rise_set_altitude( ts, lon, lat, -6.0, 0, start, end )
43 #define nautical_twilight(ts,lon,lat,start,end) \ argument
44 timelib_astro_rise_set_altitude( ts, lon, lat, -12.0, 0, start, end )
49 #define astronomical_twilight(ts,lon,lat,start,end) \ argument
50 timelib_astro_rise_set_altitude( ts, lon, lat, -18.0, 0, start, end )
H A Dparse_tz.c402 static ttinfo* fetch_timezone_offset(timelib_tzinfo *tz, timelib_sll ts, timelib_sll *transition_ti… in fetch_timezone_offset() argument
420 if (ts < tz->trans[0]) { in fetch_timezone_offset()
437 if (ts < tz->trans[i]) { in fetch_timezone_offset()
446 static tlinfo* fetch_leaptime_offset(timelib_tzinfo *tz, timelib_sll ts) in fetch_leaptime_offset() argument
455 if (ts > tz->leap_times[i].trans) { in fetch_leaptime_offset()
462 int timelib_timestamp_is_in_dst(timelib_sll ts, timelib_tzinfo *tz) in timelib_timestamp_is_in_dst() argument
467 if ((to = fetch_timezone_offset(tz, ts, &dummy))) { in timelib_timestamp_is_in_dst()
473 timelib_time_offset *timelib_get_time_zone_info(timelib_sll ts, timelib_tzinfo *tz) in timelib_get_time_zone_info() argument
482 if ((to = fetch_timezone_offset(tz, ts, &transistion_time))) { in timelib_get_time_zone_info()
494 if ((tl = fetch_leaptime_offset(tz, ts))) { in timelib_get_time_zone_info()
H A Dtimelib.c181 timelib_sll ts; in timelib_date_to_int() local
183 ts = d->sse; in timelib_date_to_int()
185 if (ts < LONG_MIN || ts > LONG_MAX) { in timelib_date_to_int()
H A Dtimelib.h95 void timelib_unixtime2gmt(timelib_time* tm, timelib_sll ts);
96 void timelib_unixtime2local(timelib_time *tm, timelib_sll ts);
105 int timelib_timestamp_is_in_dst(timelib_sll ts, timelib_tzinfo *tz);
106 timelib_time_offset *timelib_get_time_zone_info(timelib_sll ts, timelib_tzinfo *tz);
142 double timelib_ts_to_juliandate(timelib_sll ts);
H A Dunixtime2tm.c40 void timelib_unixtime2gmt(timelib_time* tm, timelib_sll ts) in timelib_unixtime2gmt() argument
48 days = ts / SECS_PER_DAY; in timelib_unixtime2gmt()
49 remainder = ts - (days * SECS_PER_DAY); in timelib_unixtime2gmt()
50 if (ts < 0 && remainder == 0) { in timelib_unixtime2gmt()
56 if (ts >= 0) { in timelib_unixtime2gmt()
131 tm->sse = ts; in timelib_unixtime2gmt()
175 void timelib_unixtime2local(timelib_time *tm, timelib_sll ts) in timelib_unixtime2local() argument
186 timelib_unixtime2gmt(tm, ts - (tm->z * 60) + (tm->dst * 3600)); in timelib_unixtime2local()
194 gmt_offset = timelib_get_time_zone_info(ts, tz); in timelib_unixtime2local()
195 timelib_unixtime2gmt(tm, ts + gmt_offset->offset); in timelib_unixtime2local()
[all …]
/PHP-5.5/ext/date/
H A Dphp_date.c1221 long ts; in php_date() local
1380 long ts = 0; in PHP_FUNCTION() local
1667 ta.tm_wday = timelib_day_of_week(ts->y, ts->m, ts->d); in php_strftime()
1668 ta.tm_yday = timelib_day_of_year(ts->y, ts->m, ts->d); in php_strftime()
1775 add_assoc_long(return_value, "tm_wday", timelib_day_of_week(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1776 add_assoc_long(return_value, "tm_yday", timelib_day_of_year(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1785 add_next_index_long(return_value, timelib_day_of_week(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1786 add_next_index_long(return_value, timelib_day_of_year(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1818 add_assoc_long(return_value, "wday", timelib_day_of_week(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1821 add_assoc_long(return_value, "yday", timelib_day_of_year(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
[all …]
H A Dphp_date.h183 PHPAPI int php_idate(char format, time_t ts, int localtime TSRMLS_DC);
188 PHPAPI char *php_format_date(char *format, int format_len, time_t ts, int localtime TSRMLS_DC);
/PHP-5.5/ext/date/tests/
H A DDateTimeZone_getTransitions_basic1.phpt39 ["ts"]=>
H A Dbug20382-2.phpt48 ts = Monday 2037-10-19 17:17:17 CEST
73 ts = Monday 1983-04-11 17:17:17 CET
78 ts = Monday 2037-10-19 17:17:17 AMT
113 ts = Monday 1971-03-29 17:17:17 AST
123 ts = Friday 1971-01-01 17:17:17 CET
128 ts = Friday 1971-01-01 17:17:17 AST
138 ts = Friday 1971-01-01 17:17:17 CET
143 ts = Monday 1971-03-29 17:17:17 GMT
148 ts = Monday 1983-04-11 17:17:17 CET
153 ts = Monday 1974-09-30 17:17:17 ART
[all …]
H A Dbug30096.phpt8 $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 Dbug35885.phpt8 $ts = date(DATE_ISO8601, strtotime('NOW', $time));
11 $res = ($ts == $ts2);
15 var_dump($ts);
H A Dbug40861.phpt8 $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 Dbug48058.phpt18 ["ts"]=>
H A Dbug52290.phpt8 $ts = strtotime('2006-01-01');
9 $dt = new DateTime('@'.$ts);
H A Dbug60236.phpt8 $ts = $t->format('U');
9 var_dump($ts);
10 $t->setTimestamp($ts);
H A Dbug62561.phpt6 $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 Ddate_modify-1.phpt8 $ts = date_create("Thu Aug 19 1993 23:59:59");
9 echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
10 $ts->modify("+1 second");
11 echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
14 $ts = date_create("Sun Mar 27 01:59:59 2005");
15 echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
16 $ts->modify("+1 second");
17 echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
19 $ts = date_create("Sun Oct 30 01:59:59 2005");
20 echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
[all …]
H A Dtimezone_transitions_get_basic1.phpt42 ["ts"]=>
/PHP-5.5/ext/fileinfo/
H A Dlibmagic.patch1045 - struct timespec ts;
1046 + struct timeval ts;
1054 - struct timespec ts;
1055 + struct timeval ts;
1169 - struct timespec ts;
1170 + struct timeval ts;
2800 - struct timespec ts;
2801 + struct timeval ts;
2803 t = ts.tv_sec;
2825 + struct timeval ts;
[all …]
/PHP-5.5/ext/fileinfo/libmagic/
H A Dcdf.c1038 ts /= CDF_TIME_PREC; in cdf_print_elapsed_time()
1039 secs = (int)(ts % 60); in cdf_print_elapsed_time()
1040 ts /= 60; in cdf_print_elapsed_time()
1041 mins = (int)(ts % 60); in cdf_print_elapsed_time()
1042 ts /= 60; in cdf_print_elapsed_time()
1043 hours = (int)(ts % 24); in cdf_print_elapsed_time()
1044 ts /= 24; in cdf_print_elapsed_time()
1045 days = (int)ts; in cdf_print_elapsed_time()
1153 struct timeval ts; in cdf_dump_dir() local
1206 struct timeval ts; local
[all …]

Completed in 64 milliseconds

123456