/PHP-8.1/ext/date/tests/ |
H A D | bug77097.phpt | 2 Bug #77097 (DateTime::diff gives wrong diff when the actual diff is less than 1 second) 8 $diff = $now->diff($ago); 9 var_dump($diff->invert, $diff->s, $diff->f); 11 $diff = $ago->diff($now); 12 var_dump($diff->invert, $diff->s, $diff->f); 14 $diff = $now->diff($ago, true); 15 var_dump($diff->invert, $diff->s, $diff->f); 17 $diff = $ago->diff($now, true); 18 var_dump($diff->invert, $diff->s, $diff->f);
|
H A D | bug49059.phpt | 2 Bug #49059 (DateTime::diff() repeats previous sub() operation) 11 $diff = $date1->diff($date2); 13 print "\$diff->days after first diff: " . $diff->days . "\n"; 16 $diff = $date1->diff($date2); 19 print "\$diff->days after second diff: " . $diff->days . "\n"; 20 $diff = $date2->diff($date1); 23 print "\$diff->days after third diff: " . $diff->days . "\n"; 28 $date1 after first diff: 2009-03-27 29 $diff->days after first diff: 26 32 $diff->days after second diff: 24 [all …]
|
H A D | bug75222.phpt | 8 $diff = $dt1->diff($dt2); 9 //var_dump($diff); 10 var_dump($diff->f); 11 var_dump(get_object_vars($diff)['f']); 12 var_dump($diff->f === get_object_vars($diff)['f']);
|
H A D | gh9866.phpt | 2 Bug GH-9866 (Time zone bug with \DateTimeInterface::diff()) 9 $dateInterval = $startDate->diff($endDate, true); 17 $diff = $start->diff($end); 18 echo $diff->format("%R %Y %M %D (%a) %H %I %S %F"), "\n";
|
H A D | bug74524.phpt | 2 Bug #74524 (Date diff is bad calculated, in same time zone) 10 $diff = $a->diff($b); 11 print_r($diff);
|
H A D | rfc-datetime_and_daylight_saving_time-type3-fd.phpt | 13 * Forward Transitions, diff(). 19 . ' = ' . $start->diff($end)->format('PT%hH%iM%sS') . "\n"; 24 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 29 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 34 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 39 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 44 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 49 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
|
H A D | bug71826.phpt | 2 Bug #71826 (DateTime::diff confuse on timezone 'Asia/Tokyo') 8 $a = (new DateTime('2015-2-1'))->diff(new DateTime('2015-3-1')); 12 $b = (new DateTime('2015-3-1'))->diff(new DateTime('2015-3-29')); 16 $c = (new DateTime('2015-4-1'))->diff(new DateTime('2015-4-29'));
|
H A D | rfc-datetime_and_daylight_saving_time-type3-bd1.phpt | 13 * Backward Transitions, diff(). 19 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 24 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 29 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 34 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 39 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
|
H A D | bug79452.phpt | 2 Bug #79452 (DateTime::diff() generates months differently between time zones) 10 var_dump($from->diff($to)->m); 17 var_dump($from->diff($to)->m);
|
H A D | bug81273.phpt | 12 $diff = $auz->diff($us); 14 var_dump($diff->h);
|
H A D | bug76032.phpt | 2 Bug #76032 (DateTime->diff having issues with leap days for timezones ahead of UTC) 11 var_dump($d->diff($a)->y); 18 var_dump($d->diff($a)->y);
|
H A D | bug73858.phpt | 2 Bug #73858: diff() of two relative/described DateTimes is wrong 15 $d= $e->diff($s); 20 $d = $e->diff($s); 29 $d= $e->diff($s); 34 $d= $e->diff($s); 38 This test just proves that the $e date is important BUT NOT because it's the one we call the diff()… 43 $d= $s->diff($e); 49 effect on the results of the diff. By modifying the datetime with ->modify everything works as expe… 55 var_dump($e->diff($s)->days); // 30 ... and should be 30
|
H A D | bug65003.phpt | 2 Bug #65003 (Wrong date diff) 13 $interval = $datetime2->diff($datetime1); 16 $interval = $datetime4->diff($datetime3);
|
H A D | bug81458.phpt | 8 var_dump($first->diff($second)->days); 9 var_dump($first->diff($second)->d); 15 var_dump($a->diff($b)->days);
|
H A D | bug66545.phpt | 15 $diff = $d1->diff($d2); 16 print_r($diff);
|
H A D | bug71700.phpt | 2 Bug #71700 (Extra day on diff between begin and end of march 2016) 10 $diff = date_diff($date1, $date2, true); 12 var_dump($diff);
|
H A D | bug81263.phpt | 2 Bug #81263 (Wrong result from DateTimeImmutable::diff) 9 print_r($dt2->diff($dt1)); 10 print_r($dt1->diff($dt2));
|
H A D | rfc-datetime_and_daylight_saving_time-type3-bd2.phpt | 21 * Backward Transitions, diff(). 28 . ' = ' . $start->diff($end)->format('P%dDT%hH%iM%sS') . "\n"; 34 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 40 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 46 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 52 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
|
H A D | date_time_fractions.phpt | 37 $diff = $dt1->diff( $dt2 ); 39 var_dump( $diff ); 41 $dt0 = $dt1->sub( $diff ); 42 $dt3 = $dt2->add( $diff ); 43 $dt4 = $dt3->add( $diff );
|
H A D | bug80974.phpt | 2 Bug #80974: Wrong diff between 2 dates in different timezones 8 echo $dtVancouver->diff($dtToronto)->format('%h');
|
/PHP-8.1/ext/bcmath/libbcmath/src/ |
H A D | sub.c | 50 bc_num diff = NULL; local 56 diff = _bc_do_add (n1, n2, scale_min); 57 diff->n_sign = n1->n_sign; 68 diff = _bc_do_sub (n2, n1, scale_min); 69 diff->n_sign = (n2->n_sign == PLUS ? MINUS : PLUS); 74 diff = bc_new_num (1, res_scale); 75 memset (diff->n_value, 0, res_scale+1); 79 diff = _bc_do_sub (n1, n2, scale_min); 80 diff->n_sign = n1->n_sign; 87 *result = diff;
|
H A D | sqrt.c | 48 bc_num guess, guess1, point5, diff; in bc_sqrt() local 74 bc_init_num(&diff); in bc_sqrt() 109 bc_sub (guess, guess1, &diff, cscale+1); in bc_sqrt() 110 if (bc_is_near_zero (diff, cscale)) in bc_sqrt() 125 bc_free_num (&diff); in bc_sqrt()
|
H A D | doaddsub.c | 142 bc_num diff; local 153 diff = bc_new_num (diff_len, MAX(diff_scale, scale_min)); 158 diffptr = (char *) (diff->n_value + diff_len + diff_scale); 166 diffptr = (char *) (diff->n_value + diff_len + diff_scale -1); 228 _bc_rm_leading_zeros (diff); 229 return diff;
|
/PHP-8.1/Zend/tests/parameter_default_values/ |
H A D | internal_declaration_error_false.phpt | 8 public function diff(): DateInterval; 12 …rror: Declaration of MyDateTimeInterface::diff(): DateInterval must be compatible with DateTimeInt…
|
/PHP-8.1/ext/standard/tests/http/ |
H A D | bug76342.phpt | 24 $diff = microtime(true) - $start; 25 if ($diff >= 2 * $timeout) { 26 echo "FAIL: $diff\n";
|