/PHP-8.4/ext/date/lib/ |
H A D | tm2unixtime.c | 158 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 D | parse_date.re | 97 #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 … 1224 s->time->h = s->time->i = s->time->s = 0; 1263 s->time->h = s->time->i = s->time->s = 0; 2028 …in.time->y = in.time->d = in.time->m = in.time->h = in.time->i = in.time->s = in.time->us = in.tim… 2062 if (in.time->have_time && !timelib_valid_time( in.time->h, in.time->i, in.time->s)) { 2066 if (in.time->have_date && !timelib_valid_date( in.time->y, in.time->m, in.time->d)) { 2097 time->h = time->i = time->s = 0; 2661 !timelib_valid_time( s->time->h, s->time->i, s->time->s)) { 2747 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.4/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.4/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.4/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);
|
H A D | msgfmt_format_intlcalendar.phpt | 15 $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-8.4/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.4/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()))); 31 %s %s %d %d, sunrise time : %d:%d 36 %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);
|
H A D | strtotime-mysql.phpt | 15 $time = strtotime($date); 17 if (is_integer($time)) { 18 var_dump(date('r', $time)); 20 var_dump($time);
|
/PHP-8.4/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.4/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')");
|
H A D | sqlite3_19_columninfo.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')")); 39 Name: time - Type: 1 41 Name: time - Type: 1
|
/PHP-8.4/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.4/win32/ |
H A D | getrusage.c | 29 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-8.4/ext/soap/tests/schema/ |
H A D | schema086.phpt | 2 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"]=>
|