/PHP-5.5/ext/date/lib/ |
H A D | tm2unixtime.c | 148 current_dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_for_weekday() 200 time->s += time->relative.s; in do_adjust_relative() 201 time->i += time->relative.i; in do_adjust_relative() 202 time->h += time->relative.h; in do_adjust_relative() 204 time->d += time->relative.d; in do_adjust_relative() 205 time->m += time->relative.m; in do_adjust_relative() 206 time->y += time->relative.y; in do_adjust_relative() 227 dow = timelib_day_of_week(time->y, time->m, time->d); in do_adjust_special_weekday() 447 res += do_time(time->h, time->i, time->s); in timelib_update_ts() 465 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 | 110 #define TIMELIB_UNHAVE_TIME() { s->time->have_time = 0; s->time->h = 0; s->time->i = 0; s->time->s … 112 #define TIMELIB_UNHAVE_DATE() { s->time->have_date = 0; s->time->d = 0; s->time->m = 0; s->time->y … 1013 s->time->h = s->time->i = s->time->s = 0; 1753 …in.time->y = in.time->d = in.time->m = in.time->h = in.time->i = in.time->s = in.time->f = in.time… 1787 if (in.time->have_time && !timelib_valid_time( in.time->h, in.time->i, in.time->s)) { 1791 if (in.time->have_date && !timelib_valid_date( in.time->y, in.time->m, in.time->d)) { 1817 time->h = time->i = time->s = 0; 2019 s->time->h = s->time->i = s->time->s = 0; 2152 !timelib_valid_time( s->time->h, s->time->i, s->time->s)) { 2228 time.y, time.m, time.d, time.h, time.i, time.s, time.f, time.z, time.dst); [all …]
|
/PHP-5.5/ext/standard/tests/general_functions/ |
H A D | getrusage_variation1.phpt | 81 User time used (microseconds) %d 84 User time used (microseconds) %d 87 User time used (microseconds) %d 90 User time used (microseconds) %d 93 User time used (microseconds) %d 96 User time used (microseconds) %d 99 User time used (microseconds) %d 102 User time used (microseconds) %d 105 User time used (microseconds) %d 108 User time used (microseconds) %d [all …]
|
H A D | sleep_basic.phpt | 25 // Test passes if sleeps for at least 98% of specified time 29 $time = $time_end - $time_start; 31 echo "Thread slept for " . $time . " seconds\n"; 33 if ($time >= $sleeplow) { 36 echo "TEST FAILED - time is ${time} secs and sleep was ${sleeptime} secs\n";
|
/PHP-5.5/ext/standard/tests/file/ |
H A D | 005_variation2.phpt | 88 -- File access time is => 89 -- File modification time is => 90 -- inode change time is => 93 -- File access time is => 95 -- inode change time is => 98 -- File access time is => 100 -- inode change time is => 103 -- File access time is => %d 105 -- inode change time is => %d 108 -- File access time is => %d [all …]
|
H A D | 005_variation-win32.phpt | 34 echo "-- File access time is => "; 37 echo "-- File modification time is => "; 40 echo "-- inode change time is => "; 122 /* set to access(creation time of the file) time */ 127 /* set to access time of $file_name2 */ 157 -- File access time is => %d:%s:%s:%d:%d:%d 160 -- File access time is => %d:%s:%s:%d:%d:%d 163 -- File access time is => %d:%s:%s:%d:%d:%d 168 -- File access time is => %d:%s:%s:%d:%d:%d 173 -- File access time is => %d:%s:%s:%d:%d:%d [all …]
|
H A D | 005_variation.phpt | 37 echo "-- File access time is => "; 40 echo "-- File modification time is => "; 43 echo "-- inode change time is => "; 137 /* set to access(creation time of the file) time */ 142 /* set to access time of $file_name2 */ 186 -- File access time is => %d:%s:%s:%d:%d:%d 189 -- File access time is => %d:%s:%s:%d:%d:%d 192 -- File access time is => %d:%s:%s:%d:%d:%d 197 -- File access time is => %d:%s:%s:%d:%d:%d 202 -- File access time is => %d:%s:%s:%d:%d:%d [all …]
|
H A D | 005_variation2-win32.phpt | 74 -- File access time is => 75 -- File modification time is => 76 -- inode change time is => 79 -- File access time is => 81 -- inode change time is => 84 -- File access time is => 86 -- inode change time is => 89 -- File access time is => 95 -- inode change time is => 100 -- File access time is => [all …]
|
/PHP-5.5/ext/date/tests/ |
H A D | date_sunrise_variation9.phpt | 6 * Description: Returns time of sunrise for a given day and location 21 echo "\n-- Testing date_sunrise() function by passing float 12.3456789000e10 value to time --\n"; 22 $time = 12.3456789000e10; 23 var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset) ); 24 var_dump( date_sunrise($time, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $zenith, $gmt_offset) ); 27 echo "\n-- Testing date_sunrise() function by passing float -12.3456789000e10 value to time --\n"; 28 $time = -12.3456789000e10; 29 var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset) ); 30 var_dump( date_sunrise($time, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $zenith, $gmt_offset) ); 38 -- Testing date_sunrise\(\) function by passing float 12.3456789000e10 value to time -- [all …]
|
H A D | date_sunset_variation9.phpt | 6 * Description: Returns time of sunset for a given day and location 21 echo "\n-- Testing date_sunset() function by passing float 12.3456789000e10 value to time --\n"; 22 $time = 12.3456789000e10; 23 var_dump( date_sunset($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset) ); 24 var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $zenith, $gmt_offset) ); 27 echo "\n-- Testing date_sunset() function by passing float -12.3456789000e10 value to time --\n"; 28 $time = -12.3456789000e10; 29 var_dump( date_sunset($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset) ); 30 var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $zenith, $gmt_offset) ); 38 -- Testing date_sunset\(\) function by passing float 12.3456789000e10 value to time -- [all …]
|
H A D | mktime-2.phpt | 16 /* status of daylight saving time unknown */ 18 /* status of daylight saving time unknown */ 20 /* daylight saving time is not in effect */ 22 /* daylight saving time is in effect */ 25 /* status of daylight saving time unknown */ 27 /* status of daylight saving time unknown */ 29 /* daylight saving time is not in effect */ 31 /* daylight saving time is in effect */
|
H A D | date_sunrise_and_sunset_basic.phpt | 8 /* calculate the sunrise time for Lisbon, Portugal 20 echo date("D M d Y") . ', sunrise time : ' . date_sunrise(time(), SUNFUNCS_RET_STRING, 38.4, -9, 90… 21 echo date("D M d Y") . ', sunset time : ' . date_sunset(time(), SUNFUNCS_RET_STRING, 38.4, -9, 90, … 27 %s %s %d %d, sunrise time : %d:%d 28 %s %s %d %d, sunset time : %d:%d
|
H A D | date_sunrise_variation8.phpt | 5 /* Prototype : mixed date_sunrise(mixed time [, int format [, float latitude [, float longitude [,… 6 * Description: Returns time of sunrise for a given day and location 26 //Iterate over different date and time 27 foreach( $time_date as $date => $time ){ 29 var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, 90, 0 ) ); 30 var_dump( date_sunrise($time, SUNFUNCS_RET_DOUBLE, 90, 0 ) ); 31 var_dump( date_sunrise($time, SUNFUNCS_RET_TIMESTAMP, 90, 0 ) ); 32 var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, -90, 0 ) ); 33 var_dump( date_sunrise($time, SUNFUNCS_RET_DOUBLE, -90, 0 ) ); 34 var_dump( date_sunrise($time, SUNFUNCS_RET_TIMESTAMP, -90, 0 ) );
|
H A D | date_sunset_variation8.phpt | 5 /* Prototype : mixed date_sunset(mixed time [, int format [, float latitude [, float longitude [, … 6 * Description: Returns time of sunrise for a given day and location 26 //Iterate over different date and time 27 foreach( $time_date as $date => $time ){ 29 var_dump( date_sunset($time, SUNFUNCS_RET_STRING, 90, 0 ) ); 30 var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, 90, 0 ) ); 31 var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, 90, 0 ) ); 32 var_dump( date_sunset($time, SUNFUNCS_RET_STRING, -90, 0 ) ); 33 var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, -90, 0 ) ); 34 var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, -90, 0 ) );
|
H A D | bug48187.phpt | 12 $begin_t = time(); 20 if (time() - $begin_t < 1) { 21 var_dump('time() difference less 1 second'); 23 var_dump('time() difference greater or equal 1 second'); 28 string(31) "time() difference less 1 second"
|
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 | DateTime_construct_variation1.phpt | 2 Test new DateTime() function : usage variation - Passing unexpected values to first argument $time. 5 /* Prototype : DateTime::__construct ([ string $time="now" [, DateTimeZone $timezone=NULL ]] ) 11 echo "*** Testing new DateTime(): usage variation - unexpected values to first argument \$time***\… 13 //Set the default time zone 100 foreach($inputs as $variation =>$time) { 104 var_dump( new DateTime($time) ); 111 var_dump( new DateTime($time, $timezone) ); 124 *** Testing new DateTime(): usage variation - unexpected values to first argument $time*** 127 FAILED: DateTime::__construct(): Failed to parse time string (0) at position 0 (0): Unexpected char… 128 FAILED: DateTime::__construct(): Failed to parse time string (0) at position 0 (0): Unexpected char… [all …]
|
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-5.5/ext/ftp/tests/ |
H A D | ftp_mdtm_basic.phpt | 22 $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-5.5/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 | 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";
|
/PHP-5.5/ext/standard/tests/time/ |
H A D | 001.phpt | 19 list($micro,$time)=explode(" ",microtime()); 20 if ($time > $last_t || ($time == $last_t && $micro >= $last_m)) { 23 $result .= sprintf('%06d', $i).": $time $micro < $last_t $last_m\n"; 26 $last_t = $time;
|
/PHP-5.5/ext/hash/ |
H A D | bench.php | 76 $time = array(); variable 84 $time[$algo] += microtime(true)-$start; 88 asort($time, SORT_NUMERIC); 89 foreach ($time as $a => $t) {
|
/PHP-5.5/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')");
|