Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 25 of 134) sorted by relevance

123456

/php-src/ext/date/tests/
H A Ddate_modify-1.phpt6 $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 Dbug20382-2.phpt48 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 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 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 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 Dbug35885.phpt8 $ts = date(DATE_ISO8601, strtotime('NOW', $time));
11 $res = ($ts == $ts2);
15 var_dump($ts);
H A Dbug60236.phpt8 $ts = $t->format('U');
9 var_dump($ts);
10 $t->setTimestamp($ts);
H A Dbug80963.phpt19 ["ts"]=>
32 ["ts"]=>
45 ["ts"]=>
/php-src/main/streams/
H A Dmemory.c348 assert(ts != NULL); in php_stream_temp_write()
381 assert(ts != NULL); in php_stream_temp_read()
402 assert(ts != NULL); in php_stream_temp_close()
412 if (ts->tmpdir) { in php_stream_temp_close()
413 efree(ts->tmpdir); in php_stream_temp_close()
416 efree(ts); in php_stream_temp_close()
427 assert(ts != NULL); in php_stream_temp_flush()
429 return ts->innerstream ? php_stream_flush(ts->innerstream) : -1; in php_stream_temp_flush()
440 assert(ts != NULL); in php_stream_temp_seek()
509 if (!ts || !ts->innerstream) { in php_stream_temp_stat()
[all …]
/php-src/ext/date/lib/
H A Dastro.h55 #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 Dunixtime2tm.c35 days = ts / SECS_PER_DAY + HINNANT_EPOCH_SHIFT; in timelib_unixtime2date()
38 t = ts % SECS_PER_DAY; in timelib_unixtime2date()
57 void timelib_unixtime2gmt(timelib_time* tm, timelib_sll ts) in timelib_unixtime2gmt() argument
62 timelib_unixtime2date(ts, &tm->y, &tm->m, &tm->d); in timelib_unixtime2gmt()
63 remainder = ts % SECS_PER_DAY; in timelib_unixtime2gmt()
77 tm->sse = ts; in timelib_unixtime2gmt()
131 timelib_unixtime2gmt(tm, ts + tm->z + (tm->dst * 3600)); in timelib_unixtime2local()
133 tm->sse = ts; in timelib_unixtime2local()
140 gmt_offset = timelib_get_time_zone_info(ts, tz); in timelib_unixtime2local()
141 timelib_unixtime2gmt(tm, ts + gmt_offset->offset); in timelib_unixtime2local()
[all …]
/php-src/ext/fileinfo/libmagic/
H A Dcdf_time.c99 cdf_timestamp_to_timespec(struct timespec *ts, cdf_timestamp_t t) in cdf_timestamp_to_timespec() argument
108 ts->tv_nsec = (t % CDF_TIME_PREC) * 100; in cdf_timestamp_to_timespec()
137 ts->tv_sec = mktime(&tm); in cdf_timestamp_to_timespec()
138 if (ts->tv_sec == -1) { in cdf_timestamp_to_timespec()
147 cdf_timespec_to_timestamp(cdf_timestamp_t *t, const struct timespec *ts) in cdf_timespec_to_timestamp() argument
151 (void)&ts; in cdf_timespec_to_timestamp()
155 if (gmtime_r(&ts->ts_sec, &tm) == NULL) { in cdf_timespec_to_timestamp()
159 *t = (ts->ts_nsec / 100) * CDF_TIME_PREC; in cdf_timespec_to_timestamp()
189 struct timespec ts; in main() local
195 cdf_timestamp_to_timespec(&ts, tst); in main()
[all …]
/php-src/sapi/fpm/fpm/
H A Dfpm_clock.c20 struct timespec ts; in fpm_clock_init() local
24 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts)) { in fpm_clock_init()
34 struct timespec ts; in fpm_clock_get() local
36 if (0 > clock_gettime(CLOCK_MONOTONIC, &ts)) { in fpm_clock_get()
41 tv->tv_sec = ts.tv_sec; in fpm_clock_get()
42 tv->tv_usec = ts.tv_nsec / 1000; in fpm_clock_get()
/php-src/ext/intl/tests/
H A Ddateformat_timezone_arg_variations4.phpt10 $ts = strtotime('2012-01-01 00:00:00 UTC');
14 echo $df->format($ts), "\n";
17 echo $df->format($ts), "\n";
20 echo $df->format($ts), "\n";
23 echo $df->format($ts), "\n";
27 echo $df->format($ts), "\n";
31 echo $df->format($ts), "\n";
34 echo $df->format($ts), "\n";
H A Ddateformat_create_cal_arg_variant5.phpt13 $ts = strtotime('2012-01-01 00:00:00 UTC');
17 echo $df->format($ts), "\n";
21 echo $df->format($ts), "\n";
26 echo $df->format($ts), "\n";
30 echo $df->format($ts), "\n";
34 echo $df->format($ts), "\n";
38 echo $df->format($ts), "\n";
41 echo $df->format($ts), "\n";
H A Ddateformat_create_cal_arg_variant4.phpt13 $ts = strtotime('2012-01-01 00:00:00 UTC');
17 echo $df->format($ts), "\n";
21 echo $df->format($ts), "\n";
26 echo $df->format($ts), "\n";
30 echo $df->format($ts), "\n";
34 echo $df->format($ts), "\n";
38 echo $df->format($ts), "\n";
41 echo $df->format($ts), "\n";
H A Ddateformat_create_default.phpt12 $ts = strtotime('2012-01-01 00:00:00 UTC');
14 echo $fmt->format($ts), "\n";
17 echo $fmt->format($ts), "\n";
20 echo $fmt->format($ts), "\n";
H A Ddateformat_create_default_icu72-1.phpt12 $ts = strtotime('2012-01-01 00:00:00 UTC');
14 echo $fmt->format($ts), "\n";
17 echo $fmt->format($ts), "\n";
20 echo $fmt->format($ts), "\n";
/php-src/ext/calendar/
H A Dcal_unix.c29 time_t ts; in PHP_FUNCTION() local
39 ts = time(NULL); in PHP_FUNCTION()
41 ts = (time_t) tl; in PHP_FUNCTION()
47 if (!(ta = php_localtime_r(&ts, &tmbuf))) { in PHP_FUNCTION()
/php-src/ext/soap/tests/soap12/
H A DT38_1.phpt11 <test:Unknown xmlns:test="http://example.org/ts-tests"
13 env:role="http://example.org/ts-tests/C">foo</test:Unknown>
14 <test:echoOk xmlns:test="http://example.org/ts-tests"
16 env:role="http://example.org/ts-tests/C">foo</test:echoOk>
26 <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://example.org/ts-…
H A DT38_2.phpt11 <test:echoOk xmlns:test="http://example.org/ts-tests"
13 env:role="http://example.org/ts-tests/C">foo</test:echoOk>
14 <test:echoOk xmlns:test="http://example.org/ts-tests"
16 env:role="http://example.org/ts-tests/C">bar</test:echoOk>
26 <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://example.org/ts-…
H A DT02.phpt11 <test:echoOk xmlns:test="http://example.org/ts-tests"
12 env:role="http://example.org/ts-tests/C">foo</test:echoOk>
22 <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://example.org/ts-…
H A DT26.phpt10 <?xml-stylesheet href="http://example.org/ts-tests/sub.xsl" type = "text/xsl"?>
12 <test:echoOk xmlns:test="http://example.org/ts-tests">foo</test:echoOk>
20 <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://example.org/ts-…
H A DT32.phpt11 <test:requiredHeader xmlns:test="http://example.org/ts-tests"
15 <test:echoHeader xmlns:test="http://example.org/ts-tests">
24 <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://example.org/ts-…
/php-src/Zend/
H A Dzend_hrtime.h94 struct timespec ts = { .tv_sec = 0, .tv_nsec = 0 }; in zend_hrtime()
95 if (EXPECTED(0 == clock_gettime(CLOCK_MONOTONIC, &ts))) { in zend_hrtime()
96 return ((zend_hrtime_t) ts.tv_sec * (zend_hrtime_t)ZEND_NANO_IN_SEC) + ts.tv_nsec; in zend_hrtime()

Completed in 23 milliseconds

123456