Home
last modified time | relevance | path

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

12345678910>>...21

/PHP-8.0/ext/date/lib/
H A Dtm2unixtime.c153 current_dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_for_weekday()
232 if (time->y == 1970 && time->m == 1 && time->d != 1) { in timelib_do_normalize()
250 time->s += time->relative.s; in do_adjust_relative()
251 time->i += time->relative.i; in do_adjust_relative()
252 time->h += time->relative.h; in do_adjust_relative()
254 time->d += time->relative.d; in do_adjust_relative()
255 time->m += time->relative.m; in do_adjust_relative()
277 dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_special_weekday()
504 res += do_time(time->h, time->i, time->s); in timelib_update_ts()
522 time.y, time.m, time.d, time.h, time.i, time.s, time.f, time.z, time.dst);
[all …]
H A Dparse_date.re95 #define TIMELIB_UNHAVE_TIME() { s->time->have_time = 0; s->time->h = 0; s->time->i = 0; s->time->s …
97 #define TIMELIB_UNHAVE_DATE() { s->time->have_date = 0; s->time->d = 0; s->time->m = 0; s->time->y …
1110 s->time->h = s->time->i = s->time->s = 0;
1142 s->time->h = s->time->i = s->time->s = 0;
1895 …in.time->y = in.time->d = in.time->m = in.time->h = in.time->i = in.time->s = in.time->us = in.tim…
1929 if (in.time->have_time && !timelib_valid_time( in.time->h, in.time->i, in.time->s)) {
1933 if (in.time->have_date && !timelib_valid_date( in.time->y, in.time->m, in.time->d)) {
1964 time->h = time->i = time->s = 0;
2517 !timelib_valid_time( s->time->h, s->time->i, s->time->s)) {
2600 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-8.0/ext/standard/tests/file/
H A D005_variation2.phpt67 -- File access time is =>
68 -- File modification time is =>
69 -- inode change time is =>
72 -- File access time is =>
74 -- inode change time is =>
77 -- File access time is =>
79 -- inode change time is =>
82 -- File access time is => %d
84 -- inode change time is => %d
87 -- File access time is => %d
[all …]
H A D005_variation-win32.phpt13 echo "-- File access time is => ";
16 echo "-- File modification time is => ";
19 echo "-- inode change time is => ";
112 /* set to access(creation time of the file) time */
117 /* set to access time of $file_name2 */
147 -- File access time is => %d:%s:%s:%d:%d:%d
150 -- File access time is => %d:%s:%s:%d:%d:%d
153 -- File access time is => %d:%s:%s:%d:%d:%d
158 -- File access time is => %d:%s:%s:%d:%d:%d
163 -- File access time is => %d:%s:%s:%d:%d:%d
[all …]
H A D005_variation2-win32.phpt53 -- File access time is =>
54 -- File modification time is =>
55 -- inode change time is =>
58 -- File access time is =>
60 -- inode change time is =>
63 -- File access time is =>
65 -- inode change time is =>
68 -- File access time is =>
74 -- inode change time is =>
79 -- File access time is =>
[all …]
/PHP-8.0/ext/ftp/tests/
H A Dftp_mdtm_basic.phpt22 $time = ftp_mdtm($ftp, "A");
23 echo date("F d Y H:i:s u",$time), PHP_EOL;
25 $time = ftp_mdtm($ftp, "B");
26 echo date("F d Y H:i:s u",$time), PHP_EOL;
28 $time = ftp_mdtm($ftp, "C");
29 echo date("F d Y H:i:s u",$time), PHP_EOL;
31 $time = ftp_mdtm($ftp, "D");
32 var_dump($time);
34 $time = ftp_mdtm($ftp, "19990929043300 File6");
35 echo date("F d Y H:i:s u",$time), PHP_EOL;
[all …]
/PHP-8.0/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())));
27 %s %s %d %d, sunrise time : %d:%d
28 %s %s %d %d, sunset time : %d:%d
H A Ddate_sunset_variation8.phpt20 //Iterate over different date and time
21 foreach( $time_date as $date => $time ){
23 var_dump( date_sunset($time, SUNFUNCS_RET_STRING, 90, 0 ) );
24 var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, 90, 0 ) );
25 var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, 90, 0 ) );
26 var_dump( date_sunset($time, SUNFUNCS_RET_STRING, -90, 0 ) );
27 var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, -90, 0 ) );
28 var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, -90, 0 ) );
H A Ddate_sunrise_variation8.phpt20 //Iterate over different date and time
21 foreach( $time_date as $date => $time ){
23 var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, 90, 0 ) );
24 var_dump( date_sunrise($time, SUNFUNCS_RET_DOUBLE, 90, 0 ) );
25 var_dump( date_sunrise($time, SUNFUNCS_RET_TIMESTAMP, 90, 0 ) );
26 var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, -90, 0 ) );
27 var_dump( date_sunrise($time, SUNFUNCS_RET_DOUBLE, -90, 0 ) );
28 var_dump( date_sunrise($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);
/PHP-8.0/ext/hash/
H A Dbench.php76 $time = array(); variable
78 $time[$algo] = 0;
87 $time[$algo] += microtime(true)-$start;
91 asort($time, SORT_NUMERIC);
92 foreach ($time as $a => $t) {
/PHP-8.0/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.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";
/PHP-8.0/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-8.0/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-8.0/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')");
/PHP-8.0/ext/dba/tests/
H A Ddba_inifile.phpt25 "key number 6" written 2nd time
26 Content 2 replaced 2nd time
32 string(27) "Content 2 replaced 2nd time"
42 "key number 6" written 2nd time
43 Content 2 replaced 2nd time
49 string(27) "Content 2 replaced 2nd time"
H A Ddba_ndbm.phpt21 Failed to write "key number 6" 2nd time
22 Content 2 replaced 2nd time
28 string(27) "Content 2 replaced 2nd time"
38 Failed to write "key number 6" 2nd time
39 Content 2 replaced 2nd time
45 string(27) "Content 2 replaced 2nd time"
H A Ddba_db1.phpt21 Failed to write "key number 6" 2nd time
22 Content 2 replaced 2nd time
28 string(27) "Content 2 replaced 2nd time"
38 Failed to write "key number 6" 2nd time
39 Content 2 replaced 2nd time
45 string(27) "Content 2 replaced 2nd time"
H A Ddba_db2.phpt21 Failed to write "key number 6" 2nd time
22 Content 2 replaced 2nd time
28 string(27) "Content 2 replaced 2nd time"
38 Failed to write "key number 6" 2nd time
39 Content 2 replaced 2nd time
45 string(27) "Content 2 replaced 2nd time"
H A Ddba_db3.phpt21 Failed to write "key number 6" 2nd time
22 Content 2 replaced 2nd time
28 string(27) "Content 2 replaced 2nd time"
38 Failed to write "key number 6" 2nd time
39 Content 2 replaced 2nd time
45 string(27) "Content 2 replaced 2nd time"
/PHP-8.0/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()

Completed in 45 milliseconds

12345678910>>...21