Home
last modified time | relevance | path

Searched refs:time (Results 1 – 25 of 561) sorted by relevance

12345678910>>...23

/php-src/ext/date/lib/
H A Dtm2unixtime.c158 current_dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_for_weekday()
235 if (time->y == 1970 && time->m == 1 && time->d != 1) { in timelib_do_normalize()
253 time->s += time->relative.s; in do_adjust_relative()
254 time->i += time->relative.i; in do_adjust_relative()
255 time->h += time->relative.h; in do_adjust_relative()
257 time->d += time->relative.d; in do_adjust_relative()
258 time->m += time->relative.m; in do_adjust_relative()
280 dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_special_weekday()
479 time->sse = timelib_hms_to_seconds(time->h, time->i, time->s); in timelib_update_ts()
498 time.y, time.m, time.d, time.h, time.i, time.s, time.f, time.z, time.dst);
[all …]
H A Dparse_date.re97 #define TIMELIB_UNHAVE_TIME() { s->time->have_time = 0; s->time->h = 0; s->time->i = 0; s->time->s …
99 #define TIMELIB_UNHAVE_DATE() { s->time->have_date = 0; s->time->d = 0; s->time->m = 0; s->time->y …
1220 s->time->h = s->time->i = s->time->s = 0;
1259 s->time->h = s->time->i = s->time->s = 0;
2024 …in.time->y = in.time->d = in.time->m = in.time->h = in.time->i = in.time->s = in.time->us = in.tim…
2058 if (in.time->have_time && !timelib_valid_time( in.time->h, in.time->i, in.time->s)) {
2062 if (in.time->have_date && !timelib_valid_date( in.time->y, in.time->m, in.time->d)) {
2093 time->h = time->i = time->s = 0;
2657 !timelib_valid_time( s->time->h, s->time->i, s->time->s)) {
2743 time.y, time.m, time.d, time.h, time.i, time.s, time.f, time.z, time.dst);
[all …]
H A DREADME.rst4 Timelib is a timezone and date/time library that can calculate local time,
5 convert between timezones and parse textual descriptions of date/time
8 It is the library supporting PHP's Date/Time extension and MongoDB's time zone
/php-src/ext/ftp/tests/
H A Dftp_mdtm_basic.phpt21 $time = ftp_mdtm($ftp, "A");
22 echo date("F d Y H:i:s u",$time), PHP_EOL;
24 $time = ftp_mdtm($ftp, "B");
25 echo date("F d Y H:i:s u",$time), PHP_EOL;
27 $time = ftp_mdtm($ftp, "C");
28 echo date("F d Y H:i:s u",$time), PHP_EOL;
30 $time = ftp_mdtm($ftp, "D");
31 var_dump($time);
33 $time = ftp_mdtm($ftp, "19990929043300 File6");
34 echo date("F d Y H:i:s u",$time), PHP_EOL;
[all …]
/php-src/ext/standard/tests/file/
H A D005_variation-win32.phpt14 echo "-- File access time is => ";
17 echo "-- File modification time is => ";
20 echo "-- inode change time is => ";
113 /* set to access(creation time of the file) time */
118 /* set to access time of $file_name2 */
148 -- File access time is => %d:%s:%s:%d:%d:%d
151 -- File access time is => %d:%s:%s:%d:%d:%d
154 -- File access time is => %d:%s:%s:%d:%d:%d
159 -- File access time is => %d:%s:%s:%d:%d:%d
164 -- File access time is => %d:%s:%s:%d:%d:%d
[all …]
H A D005_variation2.phpt16 echo "-- File access time is => ";
73 -- File access time is =>
74 -- File modification time is =>
75 -- inode change time is =>
78 -- File access time is =>
79 -- File modification time is =>
80 -- inode change time is =>
83 -- File access time is => %d
85 -- inode change time is => %d
88 -- File access time is => %d
[all …]
H A D005_variation2-win32.phpt16 echo "-- File access time is => ";
51 -- File access time is =>
52 -- File modification time is =>
53 -- inode change time is =>
56 -- File access time is =>
57 -- File modification time is =>
58 -- inode change time is =>
61 -- File access time is =>
67 -- inode change time is =>
72 -- File access time is =>
[all …]
/php-src/ext/intl/tests/
H A Dbug58756_MessageFormatter.phpt15 $time = 1247013673;
19 $msgf = new MessageFormatter('en_US', '{0,date,full} {0,time,h:m:s a V}');
21 echo "date: " . date('l, F j, Y g:i:s A T', $time) . "\n";
22 echo "msgf: " . $msgf->format(array($time)) . "\n";
26 '{1, select, date {{0,date,full}} other {{0,time,h:m:s a V}}}');
28 echo "msgf2: ", $msgf->format(array($time, 'date')), " ",
29 $msgf->format(array($time, 'time')), "\n";
H A Dbug58756_MessageFormatter_variant2.phpt20 $time = 1247013673;
24 $msgf = new MessageFormatter('en_US', '{0,date,full} {0,time,h:m:s a V}');
26 echo "date: " . date('l, F j, Y g:i:s A T', $time) . "\n";
27 echo "msgf: " . $msgf->format(array($time)) . "\n";
31 '{1, select, date {{0,date,full}} other {{0,time,h:m:s a V}}}');
33 echo "msgf2: ", $msgf->format(array($time, 'date')), " ",
34 $msgf->format(array($time, 'time')), "\n";
H A Dcalendar_setTime_basic.phpt12 $time = strtotime('2012-02-29 00:00:00 +0000');
15 $intlcal->setTime($time * 1000);
18 (float)$time*1000,
22 intlcal_set_time($intlcal,$time * 1000);
H A Dmsgfmt_format_intlcalendar.phpt15 $msgf = new MessageFormatter('pt_PT', '{0,date,full} {0,time,h:m:s a V}');
20 '{1, select, date {{0,date,full}} other {{0,time,h:m:s a V}}}');
22 echo "msgf2: ", $msgf->format(array($time, 'date')), " ",
23 $msgf->format(array($time, 'time')), "\n";
/php-src/ext/date/tests/
H A Ddate_sunrise_and_sunset_basic.phpt8 /* calculate the sunrise time for Lisbon, Portugal
17 echo date("D M d Y") . ', sunrise time : ' . date_sunrise(time(), SUNFUNCS_RET_STRING, 38.4, -9, 90…
18 echo date("D M d Y") . ', sunset time : ' . date_sunset(time(), SUNFUNCS_RET_STRING, 38.4, -9, 90, …
21 var_dump(gettype(date_sunrise(time())));
22 var_dump(gettype(date_sunset(time())));
29 %s %s %d %d, sunrise time : %d:%d
32 %s %s %d %d, sunset time : %d:%d
H A Ddate_sunrise_variation8.phpt22 //Iterate over different date and time
23 foreach( $time_date as $date => $time ){
25 var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, 90, 0 ) );
26 var_dump( date_sunrise($time, SUNFUNCS_RET_DOUBLE, 90, 0 ) );
27 var_dump( date_sunrise($time, SUNFUNCS_RET_TIMESTAMP, 90, 0 ) );
28 var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, -90, 0 ) );
29 var_dump( date_sunrise($time, SUNFUNCS_RET_DOUBLE, -90, 0 ) );
30 var_dump( date_sunrise($time, SUNFUNCS_RET_TIMESTAMP, -90, 0 ) );
H A Ddate_sunset_variation8.phpt22 //Iterate over different date and time
23 foreach( $time_date as $date => $time ){
25 var_dump( date_sunset($time, SUNFUNCS_RET_STRING, 90, 0 ) );
26 var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, 90, 0 ) );
27 var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, 90, 0 ) );
28 var_dump( date_sunset($time, SUNFUNCS_RET_STRING, -90, 0 ) );
29 var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, -90, 0 ) );
30 var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, -90, 0 ) );
H A Dbug35885.phpt7 $time = time();
8 $ts = date(DATE_ISO8601, strtotime('NOW', $time));
9 $ts2 = date(DATE_ISO8601, $time);
H A Dstrtotime-mysql-64bit.phpt15 $time = strtotime($date);
17 if (is_integer($time)) {
18 var_dump(date('r', $time));
20 var_dump($time);
H A Dstrtotime-mysql.phpt15 $time = strtotime($date);
17 if (is_integer($time)) {
18 var_dump(date('r', $time));
20 var_dump($time);
/php-src/ext/hash/
H A Dbench.php7 $time = array(); variable
9 $time[$algo] = 0;
18 $time[$algo] += hrtime(true)-$start;
22 asort($time, SORT_NUMERIC);
23 foreach ($time as $a => $t) {
/php-src/ext/standard/tests/time/
H A D001.phpt18 list($micro,$time)=explode(" ",microtime());
19 if ($time > $last_t || ($time == $last_t && $micro >= $last_m)) {
22 $result .= sprintf('%06d', $i).": $time $micro < $last_t $last_m\n";
25 $last_t = $time;
/php-src/ext/sqlite3/tests/
H A Dsqlite3_14_querysingle.phpt9 define('TIMENOW', time());
12 var_dump($db->exec('CREATE TABLE test (time INTEGER, id STRING)'));
15 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'a')"));
16 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'b')"));
20 var_dump($db->querySingle("SELECT id, time FROM test WHERE id = 'a'", true));
35 ["time"]=>
H A Dbug45798.phpt10 $db->exec('CREATE TABLE test (time INTEGER, id STRING)');
12 $db->exec("INSERT INTO test (time, id) VALUES (" . time() . ", 'a')");
13 $db->exec("INSERT INTO test (time, id) VALUES (" . time() . ", 'b')");
H A Dsqlite3_19_columninfo.phpt9 define('TIMENOW', time());
12 var_dump($db->exec('CREATE TABLE test (time INTEGER, id STRING)'));
15 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'a')"));
16 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'b')"));
39 Name: time - Type: 1
41 Name: time - Type: 1
/php-src/ext/standard/tests/general_functions/
H A Dsleep_basic.phpt20 // Test passes if sleeps for at least 98% of specified time
24 $time = $time_end - $time_start;
26 echo "Thread slept for " . $time . " seconds\n";
29 if ($time >= $sleeplow) {
32 echo "TEST FAILED - time is {$time} secs and sleep was {$sleeptime} secs\n";
/php-src/win32/
H A Dgetrusage.c29 ULARGE_INTEGER time; in usage_to_timeval() local
31 time.LowPart = ft->dwLowDateTime; in usage_to_timeval()
32 time.HighPart = ft->dwHighDateTime; in usage_to_timeval()
34 tv->tv_sec = (zend_long) (time.QuadPart / 10000000); in usage_to_timeval()
35 tv->tv_usec = (zend_long) ((time.QuadPart % 10000000) / 10); in usage_to_timeval()
/php-src/ext/soap/tests/schema/
H A Dschema086.phpt2 SOAP XML Schema 86: DateTimeInterface date/time types
13 <element name="time" type="time"/>
33 'time' => $date,
46 …Time">2023-10-14T13:37:42.123400+02:00</dateTime><time xsi:type="xsd:time">13:37:42.123400+02:00</
50 ["time"]=>
66 …Time">2023-10-14T13:37:42.123400+02:00</dateTime><time xsi:type="xsd:time">13:37:42.123400+02:00</
70 ["time"]=>
86 …xsd:dateTime">2023-10-14T13:37:42.123400Z</dateTime><time xsi:type="xsd:time">13:37:42.123400Z</ti…
90 ["time"]=>

Completed in 85 milliseconds

12345678910>>...23