Lines Matching refs:diff
2 Bug #49059 (DateTime::diff() repeats previous sub() operation)
11 $diff = $date1->diff($date2);
12 print "\$date1 after first diff: " . $date1->format("Y-m-d") . "\n";
13 print "\$diff->days after first diff: " . $diff->days . "\n";
16 $diff = $date1->diff($date2);
17 print "\$date1 after second diff (called at \$date1): " .
19 print "\$diff->days after second diff: " . $diff->days . "\n";
20 $diff = $date2->diff($date1);
21 print "\$date1 after third diff (called at \$date2): " .
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
31 $date1 after second diff (called at $date1): 2009-03-25
32 $diff->days after second diff: 24
33 $date1 after third diff (called at $date2): 2009-03-25
34 $diff->days after third diff: 24