/PHP-8.1/ext/date/lib/ |
H A D | tm2unixtime.c | 149 current_dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_for_weekday() 226 if (time->y == 1970 && time->m == 1 && time->d != 1) { in timelib_do_normalize() 244 time->s += time->relative.s; in do_adjust_relative() 245 time->i += time->relative.i; in do_adjust_relative() 246 time->h += time->relative.h; in do_adjust_relative() 248 time->d += time->relative.d; in do_adjust_relative() 249 time->m += time->relative.m; in do_adjust_relative() 271 dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_special_weekday() 463 timelib_hms_to_seconds(time->h, time->i, time->s); in timelib_update_ts() 480 time.y, time.m, time.d, time.h, time.i, time.s, time.f, time.z, time.dst); [all …]
|
H A D | parse_date.re | 96 #define TIMELIB_UNHAVE_TIME() { s->time->have_time = 0; s->time->h = 0; s->time->i = 0; s->time->s … 98 #define TIMELIB_UNHAVE_DATE() { s->time->have_date = 0; s->time->d = 0; s->time->m = 0; s->time->y … 1162 s->time->h = s->time->i = s->time->s = 0; 1201 s->time->h = s->time->i = s->time->s = 0; 1956 …in.time->y = in.time->d = in.time->m = in.time->h = in.time->i = in.time->s = in.time->us = in.tim… 1990 if (in.time->have_time && !timelib_valid_time( in.time->h, in.time->i, in.time->s)) { 1994 if (in.time->have_date && !timelib_valid_date( in.time->y, in.time->m, in.time->d)) { 2025 time->h = time->i = time->s = 0; 2578 !timelib_valid_time( s->time->h, s->time->i, s->time->s)) { 2664 time.y, time.m, time.d, time.h, time.i, time.s, time.f, time.z, time.dst); [all …]
|
H A D | README.rst | 4 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.1/ext/ftp/tests/ |
H A D | ftp_mdtm_basic.phpt | 21 $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-8.1/ext/standard/tests/file/ |
H A D | 005_variation-win32.phpt | 14 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 D | 005_variation2.phpt | 16 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 D | 005_variation2-win32.phpt | 16 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-8.1/ext/intl/tests/ |
H A D | bug58756_MessageFormatter.phpt | 15 $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 D | bug58756_MessageFormatter_variant2.phpt | 20 $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 D | calendar_setTime_basic.phpt | 12 $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);
|
/PHP-8.1/ext/date/tests/ |
H A D | date_sunrise_and_sunset_basic.phpt | 8 /* 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 D | date_sunrise_variation8.phpt | 22 //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 D | date_sunset_variation8.phpt | 22 //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 D | bug35885.phpt | 7 $time = time(); 8 $ts = date(DATE_ISO8601, strtotime('NOW', $time)); 9 $ts2 = date(DATE_ISO8601, $time);
|
H A D | strtotime-mysql-64bit.phpt | 15 $time = strtotime($date); 17 if (is_integer($time)) { 18 var_dump(date('r', $time)); 20 var_dump($time);
|
/PHP-8.1/ext/hash/ |
H A D | bench.php | 7 $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-8.1/ext/standard/tests/time/ |
H A D | 001.phpt | 18 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.1/ext/sqlite3/tests/ |
H A D | sqlite3_14_querysingle.phpt | 9 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 D | bug45798.phpt | 10 $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.1/ext/standard/tests/general_functions/ |
H A D | sleep_basic.phpt | 20 // 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.1/ext/dba/tests/ |
H A D | dba_db1.phpt | 23 Failed to write "key number 6" 2nd time 24 Content 2 replaced 2nd time 30 string(27) "Content 2 replaced 2nd time" 40 Failed to write "key number 6" 2nd time 41 Content 2 replaced 2nd time 47 string(27) "Content 2 replaced 2nd time"
|
H A D | dba_db2.phpt | 23 Failed to write "key number 6" 2nd time 24 Content 2 replaced 2nd time 30 string(27) "Content 2 replaced 2nd time" 40 Failed to write "key number 6" 2nd time 41 Content 2 replaced 2nd time 47 string(27) "Content 2 replaced 2nd time"
|
H A D | dba_db3.phpt | 23 Failed to write "key number 6" 2nd time 24 Content 2 replaced 2nd time 30 string(27) "Content 2 replaced 2nd time" 40 Failed to write "key number 6" 2nd time 41 Content 2 replaced 2nd time 47 string(27) "Content 2 replaced 2nd time"
|
H A D | dba_inifile.phpt | 27 "key number 6" written 2nd time 28 Content 2 replaced 2nd time 34 string(27) "Content 2 replaced 2nd time" 44 "key number 6" written 2nd time 45 Content 2 replaced 2nd time 51 string(27) "Content 2 replaced 2nd time"
|
H A D | dba_ndbm.phpt | 23 Failed to write "key number 6" 2nd time 24 Content 2 replaced 2nd time 30 string(27) "Content 2 replaced 2nd time" 40 Failed to write "key number 6" 2nd time 41 Content 2 replaced 2nd time 47 string(27) "Content 2 replaced 2nd time"
|