Home
last modified time | relevance | path

Searched refs:period (Results 1 – 25 of 41) sorted by relevance

12

/PHP-8.3/ext/date/tests/
H A Dbug78055.phpt10 $period = new DatePeriod($start, $interval, $recurrences, DatePeriod::EXCLUDE_START_DATE);
11 echo $period->getRecurrences(), " ", $period->recurrences, "\n";
13 $period = new DatePeriod($start, $interval, $recurrences);
14 echo $period->getRecurrences(), " ", $period->recurrences, "\n";
16 $period = new DatePeriod($start, $interval, $recurrences, DatePeriod::INCLUDE_END_DATE);
17 echo $period->getRecurrences(), " ", $period->recurrences, "\n";
19 $period = new DatePeriod($start, $interval, $end);
20 echo $period->getRecurrences(), " ", $period->recurrences, "\n";
22 $period = new DatePeriod($start, $interval, $end, DatePeriod::EXCLUDE_START_DATE);
23 echo $period->getRecurrences(), " ", $period->recurrences, "\n";
H A Dbug65672.phpt13 var_dump($period->extra);
14 $period->extra = "modified";
15 var_dump($period->extra);
18 $period->extra = [];
19 $period->extra[] = "array";
20 var_dump($period->extra);
23 $period->dynamic1 = "dynamic";
24 var_dump($period->dynamic1);
27 $period->dynamic2 = [];
29 var_dump($period->dynamic2);
[all …]
H A DDatePeriod_properties1.phpt11 $period = new DatePeriod($start, $interval, $end);
14 var_dump($period->recurrences);
17 var_dump($period->include_start_date);
20 var_dump($period->start == $start);
23 var_dump($period->current);
26 var_dump($period->end == $end);
29 var_dump($period->interval->format("%R%d"));
H A DDatePeriod_IteratorAggregate.phpt6 $period = new DatePeriod('R2/2012-07-01T00:00:00Z/P7D');
7 foreach ($period as $i => $date) {
12 foreach ($period->getIterator() as $i => $date) {
17 $iter = $period->getIterator();
33 foreach (new IteratorIterator($period) as $i => $date) {
42 $period = new MyDatePeriod1('R2/2012-07-01T00:00:00Z/P7D');
43 foreach ($period as $i => $date) {
55 $period = new MyDatePeriod2('R2/2012-07-01T00:00:00Z/P7D');
56 foreach ($period as $i => $notDate) {
H A DDatePeriod_getter.phpt10 $period = new DatePeriod($start, $interval, $end);
13 var_dump($period->getStartDate()->format('Y-m-d H:i:s'));
14 var_dump($period->getStartDate()->getTimeZone()->getName());
16 var_dump($period->getEndDate()->format('Y-m-d H:i:s'));
17 var_dump($period->getEndDate()->getTimeZone()->getName());
19 var_dump($period->getDateInterval()->format('%R%y-%m-%d-%h-%i-%s'));
20 var_dump($period->getRecurrences());
H A Dbug74639.phpt10 $period = new DatePeriod($start, $interval, $end);
11 $clonedPeriod = clone $period;
14 if ($period->getStartDate() != $clonedPeriod->getStartDate()) {
18 if ($period->getEndDate() != $clonedPeriod->getEndDate()) {
H A DDatePeriod_no_advance_on_valid.phpt9 $period = new DatePeriod($start, $interval, $end);
10 $iterator = $period->getIterator();
23 $period = new DatePeriod($start, $interval, $end, DatePeriod::EXCLUDE_START_DATE);
24 $iterator = $period->getIterator();
H A DDatePeriod_properties2.phpt8 $period = new DatePeriod(new DateTime, new DateInterval('P1D'), new DateTime);
21 $period->$property = "new";
27 $period->$property[] = "extra";
34 $period->start->modify("+1 hour");
H A Dbug71635.phpt6 $period = new DatePeriod(new DateTimeImmutable("now"), new DateInterval("P2Y4DT6H8M"), 2);
8 var_dump($period->getEndDate());
H A Ddate_period_unserialize1.phpt9 $period = new DatePeriod($start, $interval, $end);
11 $period->__unserialize(
23 var_dump($period);
H A Ddate_period_unserialize2.phpt9 $period = new DatePeriod($start, $interval, $end);
12 $period->__unserialize(
H A Ddate_period_unserialize3.phpt9 $period = new DatePeriod($start, $interval, $end);
12 $period->__unserialize(
27 var_dump($period);
H A Ddate_period_set_state1.phpt6 $period = DatePeriod::__set_state(
18 var_dump($period);
H A Ddate_interval_bad_format_leak.phpt2 DateInterval with bad format should not leak period
H A Ddate_create-relative.phpt23 // around 1 leap year period in years
/PHP-8.3/ext/date/lib/
H A Dparse_iso_intervals.re79 timelib_rel_time *period;
243 period
269 s->period->i = nr;
271 s->period->m = nr;
399 in.period->y = 0;
400 in.period->d = 0;
401 in.period->m = 0;
402 in.period->h = 0;
403 in.period->i = 0;
404 in.period->s = 0;
[all …]
H A Dparse_iso_intervals.c81 timelib_rel_time *period; member
318 s->period->i = nr; in scan()
320 s->period->m = nr; in scan()
1041 in.period->y = 0; in timelib_strtointerval()
1042 in.period->d = 0; in timelib_strtointerval()
1043 in.period->m = 0; in timelib_strtointerval()
1044 in.period->h = 0; in timelib_strtointerval()
1045 in.period->i = 0; in timelib_strtointerval()
1046 in.period->s = 0; in timelib_strtointerval()
1047 in.period->weekday = 0; in timelib_strtointerval()
[all …]
/PHP-8.3/ext/standard/
H A Duser_filters.c240 char *period; in user_filter_factory_create() local
247 if ((period = strrchr(filtername, '.'))) { in user_filter_factory_create()
252 period = wildcard + (period - filtername); in user_filter_factory_create()
253 while (period) { in user_filter_factory_create()
254 ZEND_ASSERT(period[0] == '.'); in user_filter_factory_create()
255 period[1] = '*'; in user_filter_factory_create()
256 period[2] = '\0'; in user_filter_factory_create()
258 period = NULL; in user_filter_factory_create()
260 *period = '\0'; in user_filter_factory_create()
261 period = strrchr(wildcard, '.'); in user_filter_factory_create()
/PHP-8.3/ext/standard/tests/serialize/
H A Dbug62373.phpt11 $period = $size_of_ce << 5;
12 for ($i = 0; $i < $period * 3; $i++) {
/PHP-8.3/main/streams/
H A Dfilter.c226 char *period; in php_stream_filter_create() local
232 } else if ((period = strrchr(filtername, '.'))) { in php_stream_filter_create()
238 period = wildname + (period - filtername); in php_stream_filter_create()
239 while (period && !filter) { in php_stream_filter_create()
240 ZEND_ASSERT(period[0] == '.'); in php_stream_filter_create()
241 period[1] = '*'; in php_stream_filter_create()
242 period[2] = '\0'; in php_stream_filter_create()
247 *period = '\0'; in php_stream_filter_create()
248 period = strrchr(wildname, '.'); in php_stream_filter_create()
/PHP-8.3/Zend/tests/
H A Dnumeric_literal_separator_004.phpt2 Invalid use: underscore left of period
H A Dnumeric_literal_separator_005.phpt2 Invalid use: underscore right of period
/PHP-8.3/ext/standard/tests/strings/
H A Dstr_decrement_errors.phpt22 // With period
25 // With multiple period
H A Dstr_increment_errors.phpt22 // With period
25 // With multiple period
/PHP-8.3/Zend/tests/in-de-crement/
H A Dstring_increment_various.phpt34 // With period
37 // With multiple period

Completed in 46 milliseconds

12