Home
last modified time | relevance | path

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

1234567

/PHP-7.0/ext/date/tests/
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 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 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 Drfc-datetime_and_daylight_saving_time-type3-bd2.phpt23 * Backward Transitions, diff().
30 . ' = ' . $start->diff($end)->format('P%dDT%hH%iM%sS') . "\n";
36 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
42 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
48 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
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' ) );
H A Dbug52113.phpt9 $diff = $start->diff($end);
10 $p = new DatePeriod($start, $diff, 2);
11 $diff_s = serialize($diff);
12 var_dump($diff, $diff_s);
13 var_export($diff);
H A Dbug49081.phpt2 Bug #49081 (DateTime::diff() mistake if start in January and interval > 28 days)
8 $d = $d1->diff($d2);
H A Drfc-datetime_and_daylight_saving_time-type1.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";
144 * Backward Transitions, diff().
150 . ' = ' . $start->diff($end)->format('PT%hH%iM%sS') . "\n";
[all …]
H A Dbug45682.phpt11 $diff = date_diff($date, $other);
13 var_dump($diff);
H A Drfc-datetime_and_daylight_saving_time-type2.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";
144 * Backward Transitions, diff().
150 . ' = ' . $start->diff($end)->format('PT%hH%iM%sS') . "\n";
[all …]
H A Dexamine_diff.inc4 * Helper for the DateTime diff/days/math tests
19 * Provides a consistent interface for executing date diff/add/sub tests
56 $result_interval = $start->diff($end, $absolute);
62 $result_interval = $start->diff($end, $absolute);
H A DDateTime_days-absolute.phpt2 DateTime::diff() days -- absolute
H A DDateTime_days-massive.phpt2 DateTime::diff() days -- massive
/PHP-7.0/ext/bcmath/libbcmath/src/
H A Dsub.c51 bc_num diff = NULL; local
57 diff = _bc_do_add (n1, n2, scale_min);
58 diff->n_sign = n1->n_sign;
69 diff = _bc_do_sub (n2, n1, scale_min);
70 diff->n_sign = (n2->n_sign == PLUS ? MINUS : PLUS);
75 diff = bc_new_num (1, res_scale);
76 memset (diff->n_value, 0, res_scale+1);
80 diff = _bc_do_sub (n1, n2, scale_min);
81 diff->n_sign = n1->n_sign;
88 *result = diff;
H A Dsqrt.c49 bc_num guess, guess1, point5, diff; in bc_sqrt() local
76 bc_init_num(&diff); in bc_sqrt()
110 bc_sub (guess, guess1, &diff, cscale+1); in bc_sqrt()
111 if (bc_is_near_zero (diff, cscale)) in bc_sqrt()
126 bc_free_num (&diff); in bc_sqrt()
H A Ddoaddsub.c143 bc_num diff; local
154 diff = bc_new_num (diff_len, MAX(diff_scale, scale_min));
159 diffptr = (char *) (diff->n_value + diff_len + diff_scale);
167 diffptr = (char *) (diff->n_value + diff_len + diff_scale -1);
229 _bc_rm_leading_zeros (diff);
230 return diff;
/PHP-7.0/ext/pdo_pgsql/tests/
H A Dgetnotify.phpt73 $diff = microtime(1) - $t;
74 var_dump($diff >= 1 || 1 - abs($diff) < .05);
81 $diff = microtime(1) - $t;
82 var_dump($diff < 1 || abs(1 - abs($diff)) < .05);
/PHP-7.0/
H A D.gitignore73 diff
119 tests/*/*.diff
125 tests/*/*/*.diff
131 */tests/*.diff
137 */tests/*/*.diff
143 */tests/*/*/*.diff
149 */*/tests/*.diff
156 */*/tests/*/*.diff
162 */*/tests/*/*/*.diff
168 */*/tests/*/*/*/*.diff
/PHP-7.0/ext/pcre/pcrelib/sljit/
H A DsljitNativeARM_T2_32.c244 if (diff <= 127 && diff >= -128) { in detect_jump_type()
248 if (diff <= 524287 && diff >= -524288) { in detect_jump_type()
253 diff--; in detect_jump_type()
254 if (diff <= 8388607 && diff >= -8388608) { in detect_jump_type()
260 if (diff <= 8388607 && diff >= -8388608) { in detect_jump_type()
266 if (diff <= 1023 && diff >= -1024) { in detect_jump_type()
270 if (diff <= 8388607 && diff >= -8388608) { in detect_jump_type()
314 diff--; in set_jump_instruction()
324 SLJIT_ASSERT(diff <= 8388607 && diff >= -8388608); in set_jump_instruction()
986 if (diff <= 0xfff && diff >= -0xfff) in can_cache()
[all …]
/PHP-7.0/ext/xmlrpc/libxmlrpc/
H A Dencodings.c85 int diff = out_ptr - outbuf; in convert() local
92 out_ptr = outbuf + diff; in convert()
/PHP-7.0/ext/standard/
H A Dhead.c137 double diff; in php_setcookie() local
153 diff = difftime(expires, time(NULL)); in php_setcookie()
154 if (diff < 0) { in php_setcookie()
155 diff = 0; in php_setcookie()
157 snprintf(tsdelta, sizeof(tsdelta), ZEND_LONG_FMT, (zend_long) diff); in php_setcookie()
H A Dcrypt_blowfish.c557 BF_word safety, sign, diff, tmp[2]; in BF_set_key() local
597 sign = diff = 0; in BF_set_key()
619 diff |= tmp[0] ^ tmp[1]; /* Non-zero on any differences */ in BF_set_key()
634 diff |= diff >> 16; /* still zero iff exact match */ in BF_set_key()
635 diff &= 0xffff; /* ditto */ in BF_set_key()
636 diff += 0xffff; /* bit 16 set iff "diff" was non-zero (on non-match) */ in BF_set_key()
638 sign &= ~diff & safety; /* action needed? */ in BF_set_key()
/PHP-7.0/ext/pcre/
H A Dupgrade-pcre.php95 $diff = array_diff($dirorig, $dirnew); variable
97 foreach ($diff as $file) {
/PHP-7.0/tests/classes/
H A Dbug65768.phpt12 $diff1 = $dt1->diff($dti1);
16 $diff2 = $dti1->diff($dti2);

Completed in 29 milliseconds

1234567