Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 25 of 188) sorted by relevance

12345678

/PHP-8.2/ext/date/tests/
H A Dbug77097.phpt2 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 Dbug49059.phpt2 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 Dbug75222.phpt8 $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 Dgh9866.phpt2 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 Dbug74524.phpt2 Bug #74524 (Date diff is bad calculated, in same time zone)
10 $diff = $a->diff($b);
11 print_r($diff);
H A Drfc-datetime_and_daylight_saving_time-type3-fd.phpt13 * 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 Dbug71826.phpt2 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 Drfc-datetime_and_daylight_saving_time-type3-bd1.phpt13 * 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 Dbug79452.phpt2 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 Dbug81273.phpt12 $diff = $auz->diff($us);
14 var_dump($diff->h);
H A Dbug76032.phpt2 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 Dbug73858.phpt2 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 Dbug65003.phpt2 Bug #65003 (Wrong date diff)
13 $interval = $datetime2->diff($datetime1);
16 $interval = $datetime4->diff($datetime3);
H A Dbug66545.phpt15 $diff = $d1->diff($d2);
16 print_r($diff);
H A Dbug81458.phpt8 var_dump($first->diff($second)->days);
9 var_dump($first->diff($second)->d);
15 var_dump($a->diff($b)->days);
H A Dbug81263.phpt2 Bug #81263 (Wrong result from DateTimeImmutable::diff)
9 print_r($dt2->diff($dt1));
10 print_r($dt1->diff($dt2));
H A Dbug71700.phpt2 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 Drfc-datetime_and_daylight_saving_time-type3-bd2.phpt21 * 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 Ddate_time_fractions.phpt37 $diff = $dt1->diff( $dt2 );
39 var_dump( $diff );
41 $dt0 = $dt1->sub( $diff );
42 $dt3 = $dt2->add( $diff );
43 $dt4 = $dt3->add( $diff );
/PHP-8.2/ext/bcmath/libbcmath/src/
H A Dsub.c50 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 Dsqrt.c48 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 Ddoaddsub.c142 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.2/
H A D.gitattributes16 # Configure proper diff drivers to improve the context lines in the output
17 # of git diff and to improve token splitting for --word-diff.
18 *.phpt diff=php
19 *.php diff=php
20 *.[ch] diff=cpp
/PHP-8.2/Zend/tests/parameter_default_values/
H A Dinternal_declaration_error_false.phpt8 public function diff(): DateInterval;
12 …rror: Declaration of MyDateTimeInterface::diff(): DateInterval must be compatible with DateTimeInt…
/PHP-8.2/ext/standard/tests/http/
H A Dbug76342.phpt24 $diff = microtime(true) - $start;
25 if ($diff >= 2 * $timeout) {
26 echo "FAIL: $diff\n";

Completed in 33 milliseconds

12345678