Home
last modified time | relevance | path

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

12345678

/php-src/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 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 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 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 );
H A Ddate_diff.phpt25 $diff = date_diff( $dates[$i], $dates[$j] );
30 $diff->format( '%a' ),
31 $diff->format( '%y-%m-%d' )
36 $int = new DateInterval( $diff->format( 'P%yY%mM%dD' ) );
/php-src/ext/bcmath/libbcmath/src/
H A Dsub.c44 bc_num diff = NULL; in bc_sub() local
47 diff = _bc_do_add(n1, n2, scale_min); in bc_sub()
48 diff->n_sign = n1->n_sign; in bc_sub()
55 diff = _bc_do_sub(n2, n1, scale_min); in bc_sub()
56 diff->n_sign = (n2->n_sign == PLUS ? MINUS : PLUS); in bc_sub()
61 diff = bc_new_num (1, res_scale); in bc_sub()
62 memset(diff->n_value, 0, res_scale + 1); in bc_sub()
67 diff = _bc_do_sub(n1, n2, scale_min); in bc_sub()
68 diff->n_sign = n1->n_sign; in bc_sub()
75 *result = diff; in bc_sub()
H A Dsqrt.c62 bc_num guess, guess1, point5, diff; in bc_sqrt() local
66 bc_init_num(&diff); in bc_sqrt()
97 bc_sub(guess, guess1, &diff, cscale + 1); in bc_sqrt()
98 if (bc_is_near_zero(diff, cscale)) { in bc_sqrt()
113 bc_free_num (&diff); in bc_sqrt()
/php-src/
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
22 # Collapse generated files within git and pull request diff.
23 **/*_arginfo.h linguist-generated -diff
24 /main/gdb_inlined_script.c linguist-generated -diff
25 /Zend/zend_vm_execute.h linguist-generated -diff
26 /Zend/zend_vm_handlers.h linguist-generated -diff
[all …]
/php-src/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-src/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