Home
last modified time | relevance | path

Searched refs:interval (Results 1 – 25 of 64) sorted by relevance

123

/PHP-8.1/ext/date/tests/
H A DDateInterval_format.phpt16 $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 Dbug81500.phpt5 $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 Drfc-datetime_and_daylight_saving_time-type1.phpt58 $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 Drfc-datetime_and_daylight_saving_time-type3-ba.phpt18 $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 Drfc-datetime_and_daylight_saving_time-type3-bs.phpt20 $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 Drfc-datetime_and_daylight_saving_time-type2.phpt59 $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 Dbug80610.phpt6 $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 Drfc-datetime_and_daylight_saving_time-type3-fs.phpt18 $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 Drfc-datetime_and_daylight_saving_time-type3-fa.phpt18 $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 Dbug80998.phpt2 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 Dbug69587.phpt7 $interval = $datetime1->diff($datetime2);
9 var_dump(property_exists($interval, 'm'), isset($interval->m), empty($interval->m), empty($interval
H A DDatePeriod_properties1.phpt9 $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 Dbug78055.phpt7 $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 Dbug74852.phpt6 $interval = new DateInterval('P2D');
7 var_dump(property_exists($interval,'abcde'));
8 var_dump(isset($interval->abcde));
9 var_dump($interval->abcde);
H A Dbug76374.phpt9 $interval = $objDateTo->diff($objDateFrom);
10 echo $interval->m, "\n";
14 $interval = $objDateTo->diff($objDateFrom);
15 echo $interval->m, "\n";
H A Ddate_interval_format.phpt10 $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 Dbug65003.phpt13 $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 Dbug55253.phpt10 $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 Dbug74639.phpt8 $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 Ddate_period_bad_iso_format.phpt27 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 Dinterval.c269 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 Dbug74083-concurrent-reload.phpt39 /* 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 Dbug76601-reload-child-signals.phpt50 /* 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 Dfpm_systemd.c84 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 Dpreload_bug80634.inc3 public $interval;
7 $this->interval = $v;
8 var_dump($this->interval);

Completed in 130 milliseconds

123