Home
last modified time | relevance | path

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

123

/PHP-8.0/ext/date/tests/
H A DDateInterval_format.phpt18 $interval = $date1->diff($date2);
20 echo $interval->format('Y=%Y') . "\n";
21 echo $interval->format('M=%M') . "\n";
22 echo $interval->format('D=%D') . "\n";
23 echo $interval->format('H=%H') . "\n";
24 echo $interval->format('I=%I') . "\n";
25 echo $interval->format('S=%S') . "\n";
26 echo $interval->format('R=%R') . "\n";
28 echo $interval->format('y=%y') . "\n";
29 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.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 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 Drfc-datetime_and_daylight_saving_time-type3-fs.phpt20 $interval = new DateInterval($interval_spec);
22 . $end->sub($interval)->format($date_format) . "\n";
26 $interval = new DateInterval($interval_spec);
28 . $end->sub($interval)->format($date_format) . "\n";
32 $interval = new DateInterval($interval_spec);
34 . $end->sub($interval)->format($date_format) . "\n";
38 $interval = new DateInterval($interval_spec);
40 . $end->sub($interval)->format($date_format) . "\n";
44 $interval = new DateInterval($interval_spec);
50 $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);
44 . $start->add($interval)->format($date_format) . "\n";
[all …]
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 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 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 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 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 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 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…
H A DDatePeriod_getter.phpt9 $interval = new DateInterval('P1D');
10 $period = new DatePeriod($start, $interval, $end);
22 $periodWithRecurrences = new DatePeriod($start, $interval, $recurrences);
27 $periodWithRecurrencesWithoutStart = new DatePeriod($start, $interval, $recurrences, DatePeriod::EX…
H A DDateInterval_days_prop1.phpt6 $interval = new DateInterval('P2Y4DT6H8M');
8 var_dump($interval->days);
H A Dbug54340.phpt7 $interval = new DateInterval('P1D');
12 $dt->add($interval);
17 $dt->sub($interval);
H A DDateInterval_write_property_return.phpt6 $interval = new DateInterval('P2Y4DT6H8M');
8 var_dump($interval->f = $f);
/PHP-8.0/ext/date/lib/
H A Dinterval.c105 if (interval->have_weekday_relative || interval->have_special_relative) { in timelib_add()
108 if (interval->invert) { in timelib_add()
112 t->relative.y = interval->y * bias; in timelib_add()
113 t->relative.m = interval->m * bias; in timelib_add()
114 t->relative.d = interval->d * bias; in timelib_add()
115 t->relative.h = interval->h * bias; in timelib_add()
116 t->relative.i = interval->i * bias; in timelib_add()
127 if (old_time->dst == 1 && t->dst == 0 && !interval->y && !interval->m && !interval->d) { in timelib_add()
143 if (interval->invert) { in timelib_sub()
161 if (old_time->dst == 1 && t->dst == 0 && !interval->y && !interval->m && !interval->d) { in timelib_sub()
[all …]
/PHP-8.0/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.0/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.0/ext/opcache/tests/jit/
H A Dpreload_bug80634.inc3 public $interval;
7 $this->interval = $v;
8 var_dump($this->interval);

Completed in 43 milliseconds

123