/php-src/ext/date/tests/ |
H A D | DateInterval_format.phpt | 16 $interval = $date1->diff($date2); 18 echo $interval->format('Y=%Y') . "\n"; 19 echo $interval->format('M=%M') . "\n"; 20 echo $interval->format('D=%D') . "\n"; 21 echo $interval->format('H=%H') . "\n"; 22 echo $interval->format('I=%I') . "\n"; 23 echo $interval->format('S=%S') . "\n"; 24 echo $interval->format('R=%R') . "\n"; 26 echo $interval->format('y=%y') . "\n"; 27 echo $interval->format('m=%m') . "\n"; [all …]
|
H A D | bug81500.phpt | 5 $interval = new DateInterval('PT1S'); 6 $interval->f = -0.000001; 7 var_dump($interval->s, $interval->f); 9 $interval = unserialize(serialize($interval)); 10 var_dump($interval->s, $interval->f);
|
H A D | rfc-datetime_and_daylight_saving_time-type1.phpt | 58 $interval = new DateInterval($interval_spec); 64 $interval = new DateInterval($interval_spec); 70 $interval = new DateInterval($interval_spec); 76 $interval = new DateInterval($interval_spec); 82 $interval = new DateInterval($interval_spec); 88 $interval = new DateInterval($interval_spec); 100 $interval = new DateInterval($interval_spec); 106 $interval = new DateInterval($interval_spec); 112 $interval = new DateInterval($interval_spec); 118 $interval = new DateInterval($interval_spec); [all …]
|
H A D | rfc-datetime_and_daylight_saving_time-type3-ba.phpt | 18 $interval = new DateInterval($interval_spec); 24 $interval = new DateInterval($interval_spec); 30 $interval = new DateInterval($interval_spec); 36 $interval = new DateInterval($interval_spec); 42 $interval = new DateInterval($interval_spec); 48 $interval = new DateInterval($interval_spec); 54 $interval = new DateInterval($interval_spec); 60 $interval = new DateInterval($interval_spec); 66 $interval = new DateInterval($interval_spec); 72 $interval = new DateInterval($interval_spec); [all …]
|
H A D | rfc-datetime_and_daylight_saving_time-type3-bs.phpt | 20 $interval = new DateInterval($interval_spec); 22 . $end->sub($interval)->format($date_format) . "\n"; 26 $interval = new DateInterval($interval_spec); 32 $interval = new DateInterval($interval_spec); 38 $interval = new DateInterval($interval_spec); 45 $interval = new DateInterval($interval_spec); 52 $interval = new DateInterval($interval_spec); 58 $interval = new DateInterval($interval_spec); 65 $interval = new DateInterval($interval_spec); 71 $interval = new DateInterval($interval_spec); [all …]
|
H A D | rfc-datetime_and_daylight_saving_time-type2.phpt | 59 $interval = new DateInterval($interval_spec); 65 $interval = new DateInterval($interval_spec); 71 $interval = new DateInterval($interval_spec); 77 $interval = new DateInterval($interval_spec); 83 $interval = new DateInterval($interval_spec); 89 $interval = new DateInterval($interval_spec); 101 $interval = new DateInterval($interval_spec); 107 $interval = new DateInterval($interval_spec); 113 $interval = new DateInterval($interval_spec); 119 $interval = new DateInterval($interval_spec); [all …]
|
H A D | bug80610.phpt | 6 $interval = new DateInterval('PT20800M'); 7 $expectEaster->sub($interval); 8 $expectEaster->add($interval); 12 $interval = new DateInterval('PT20715M'); 13 $expectEaster->sub($interval); 14 $expectEaster->add($interval); 18 $interval = new DateInterval('PT20700M'); 19 $expectEaster->sub($interval); 20 $expectEaster->add($interval);
|
H A D | rfc-datetime_and_daylight_saving_time-type3-fs.phpt | 18 $interval = new DateInterval($interval_spec); 20 . $end->sub($interval)->format($date_format) . "\n"; 24 $interval = new DateInterval($interval_spec); 26 . $end->sub($interval)->format($date_format) . "\n"; 30 $interval = new DateInterval($interval_spec); 32 . $end->sub($interval)->format($date_format) . "\n"; 36 $interval = new DateInterval($interval_spec); 38 . $end->sub($interval)->format($date_format) . "\n"; 42 $interval = new DateInterval($interval_spec); 48 $interval = new DateInterval($interval_spec); [all …]
|
H A D | rfc-datetime_and_daylight_saving_time-type3-fa.phpt | 18 $interval = new DateInterval($interval_spec); 20 . $start->add($interval)->format($date_format) . "\n"; 24 $interval = new DateInterval($interval_spec); 26 . $start->add($interval)->format($date_format) . "\n"; 30 $interval = new DateInterval($interval_spec); 32 . $start->add($interval)->format($date_format) . "\n"; 36 $interval = new DateInterval($interval_spec); 38 . $start->add($interval)->format($date_format) . "\n"; 42 $interval = new DateInterval($interval_spec); 48 $interval = new DateInterval($interval_spec); [all …]
|
H A D | bug80998.phpt | 2 Bug #80998: Missing second with inverted interval 6 $interval = new DateInterval('P0DT10799S'); 7 $interval->f = 0.999999; 8 $interval->invert = 1; 9 $date->add($interval);
|
H A D | bug69587.phpt | 7 $interval = $datetime1->diff($datetime2); 9 var_dump(property_exists($interval, 'm'), isset($interval->m), empty($interval->m), empty($interval…
|
H A D | bug78055.phpt | 7 $interval = new DateInterval('P1M'); 10 $period = new DatePeriod($start, $interval, $recurrences, DatePeriod::EXCLUDE_START_DATE); 13 $period = new DatePeriod($start, $interval, $recurrences); 16 $period = new DatePeriod($start, $interval, $recurrences, DatePeriod::INCLUDE_END_DATE); 19 $period = new DatePeriod($start, $interval, $end); 22 $period = new DatePeriod($start, $interval, $end, DatePeriod::EXCLUDE_START_DATE);
|
H A D | DatePeriod_properties1.phpt | 9 $interval = new DateInterval('P1D'); 11 $period = new DatePeriod($start, $interval, $end); 28 echo "interval: "; 29 var_dump($period->interval->format("%R%d")); 37 interval: string(2) "+1"
|
H A D | bug74852.phpt | 6 $interval = new DateInterval('P2D'); 7 var_dump(property_exists($interval,'abcde')); 8 var_dump(isset($interval->abcde)); 9 var_dump($interval->abcde);
|
H A D | bug76374.phpt | 9 $interval = $objDateTo->diff($objDateFrom); 10 echo $interval->m, "\n"; 14 $interval = $objDateTo->diff($objDateFrom); 15 echo $interval->m, "\n";
|
H A D | date_interval_format.phpt | 10 $interval = new DateInterval('P2Y4DT6H8M'); 11 echo date_interval_format($interval, '%d days'); 15 $interval = new DateInterval('P32D'); 16 echo date_interval_format($interval, '%d days');
|
H A D | DatePeriod_set_state_exception.phpt | 9 …'interval' => DateInterval::createFromDateString("tomorrow"), 'recurrences' => 1, 'include_start_d… 13 …'interval' => DateInterval::createFromDateString("tomorrow"), 'recurrences' => 1, 'include_start_d… 18 …'interval' => DateInterval::createFromDateString("tomorrow"), 'recurrences' => 1, 'include_start_d… 22 …'interval' => DateInterval::createFromDateString("tomorrow"), 'recurrences' => 1, 'include_start_d… 26 …'interval' => DateInterval::createFromDateString("tomorrow"), 'recurrences' => 1, 'include_start_d… 30 …'interval' => "tomorrow", 'recurrences' => 1, 'include_start_date' => true, 'include_end_date' => … 34 …'interval' => DateInterval::createFromDateString("tomorrow"), 'recurrences' => -1, 'include_start_… 38 …'interval' => DateInterval::createFromDateString("tomorrow"), 'recurrences' => 1, 'include_start_d… 42 …'interval' => DateInterval::createFromDateString("tomorrow"), 'recurrences' => 1, 'include_start_d…
|
H A D | bug65003.phpt | 13 $interval = $datetime2->diff($datetime1); 14 echo $interval->format('%m month, %d days'), "\n"; //1 month, 3 days 16 $interval = $datetime4->diff($datetime3); 17 echo $interval->format('%m month, %d days'), "\n"; //1 month, 0 days
|
H A D | DatePeriod_modify_readonly_property.phpt | 12 $dp->interval = "foo"; 18 $foo =& $dp->interval; 24 Error: Cannot modify readonly property DatePeriod::$interval 25 Error: Cannot modify readonly property DatePeriod::$interval
|
H A D | bug55253.phpt | 10 $interval = new DateInterval('PT2H1M'); 18 echo $interval->format('Add %h hours %i minutes') . "\n"; 19 $date3->add($interval); 20 $date2->add($interval); 29 echo $interval->format('Subtract %h hours %i minutes from expected') . "\n"; 30 $date3->sub($interval); 31 $date2->sub($interval);
|
H A D | bug74639.phpt | 8 $interval = $start->diff($end); 10 $period = new DatePeriod($start, $interval, $end); 12 $clonedInterval = clone $interval; 22 if ($interval->format('Y-m-d H:i:s') != $clonedInterval->format('Y-m-d H:i:s')) {
|
/php-src/ext/date/lib/ |
H A D | interval.c | 216 if (interval->have_weekday_relative || interval->have_special_relative) { in timelib_add() 219 if (interval->invert) { in timelib_add() 247 if (interval->invert) { in timelib_sub() 292 if (interval->have_weekday_relative || interval->have_special_relative) { in timelib_add_wall() 299 if (interval->invert) { in timelib_add_wall() 311 if (interval->us == 0) { in timelib_add_wall() 312 t->sse += bias * timelib_hms_to_seconds(interval->h, interval->i, interval->s); in timelib_add_wall() 346 if (interval->have_weekday_relative || interval->have_special_relative) { in timelib_sub_wall() 352 if (interval->invert) { in timelib_sub_wall() 364 if (interval->us == 0) { in timelib_sub_wall() [all …]
|
/php-src/sapi/fpm/tests/ |
H A D | bug74083-concurrent-reload.phpt | 39 /* Vary interval between concurrent reload requests 44 for ($interval = 0; $interval < $max_interval; $interval += $step) { 50 usleep($interval); 52 echo "Reached interval $interval us with $step us steps\n"; 65 Reached interval 25000 us with 1000 us steps
|
H A D | bug76601-reload-child-signals.phpt | 50 /* Vary interval between concurrent reload requests 55 for ($interval = 0; $interval < $max_interval; $interval += $step) { 61 usleep($interval); 63 echo "Reached interval $interval us with $step us steps\n"; 78 Reached interval 25000 us with 1000 us steps
|
/php-src/sapi/fpm/fpm/ |
H A D | fpm_systemd.c | 84 int interval = 0; in fpm_systemd_conf() local 89 interval = (int)(atol(watchdog) / 2000L); in fpm_systemd_conf() 90 zlog(ZLOG_DEBUG, "WATCHDOG_USEC=%s, interval=%d", watchdog, interval); in fpm_systemd_conf() 93 if (interval > 1000) { in fpm_systemd_conf() 97 zlog(ZLOG_NOTICE, "systemd watchdog configured to %.3gsec", (float)interval / 1000.0); in fpm_systemd_conf() 99 fpm_global_config.systemd_interval = interval; in fpm_systemd_conf()
|