/PHP-8.1/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 | 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 | 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, $end); 19 $period = new DatePeriod($start, $interval, $end, DatePeriod::EXCLUDE_START_DATE);
|
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 | 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 | 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')) {
|
H A D | date_period_bad_iso_format.phpt | 27 DatePeriod::__construct(): ISO interval must contain a start date, "R4" given 28 DatePeriod::__construct(): ISO interval must contain an interval, "R4/2012-07-01T00:00:00Z" given 29 DatePeriod::__construct(): ISO interval must contain an end date or a recurrence count, "2012-07-01…
|
/PHP-8.1/ext/date/lib/ |
H A D | interval.c | 269 if (interval->have_weekday_relative || interval->have_special_relative) { in timelib_add() 272 if (interval->invert) { in timelib_add() 300 if (interval->invert) { in timelib_sub() 345 if (interval->have_weekday_relative || interval->have_special_relative) { in timelib_add_wall() 352 if (interval->invert) { in timelib_add_wall() 364 if (interval->us == 0) { in timelib_add_wall() 365 t->sse += bias * timelib_hms_to_seconds(interval->h, interval->i, interval->s); in timelib_add_wall() 399 if (interval->have_weekday_relative || interval->have_special_relative) { in timelib_sub_wall() 405 if (interval->invert) { in timelib_sub_wall() 417 if (interval->us == 0) { in timelib_sub_wall() [all …]
|
/PHP-8.1/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-8.1/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()
|
/PHP-8.1/ext/opcache/tests/jit/ |
H A D | preload_bug80634.inc | 3 public $interval; 7 $this->interval = $v; 8 var_dump($this->interval);
|