Home
last modified time | relevance | path

Searched refs:interval (Results 1 – 25 of 81) sorted by path

1234

/php-src/ext/date/
H A Dconfig.w325 ….c parse_posix.c parse_tz.c tm2unixtime.c unixtime2tm.c parse_iso_intervals.c interval.c", "date");
H A Dconfig0.m49 … lib/timelib.c lib/tm2unixtime.c lib/unixtime2tm.c lib/parse_iso_intervals.c lib/interval.c"
H A Dphp_date.c1494 if (interval) { in create_date_period_interval()
1641 it_time->relative = *interval; in date_period_advance()
2277 if (old_obj->interval) { in date_object_clone_period()
2278 new_obj->interval = timelib_rel_time_clone(old_obj->interval); in date_object_clone_period()
3422 zval *object, *interval; in PHP_FUNCTION() local
3479 zval *object, *interval; in PHP_FUNCTION() local
3493 zval *object, *interval; in PHP_METHOD() local
3970 php_interval_obj *interval; in PHP_FUNCTION() local
3985 interval->diff->invert = 0; in PHP_FUNCTION()
3987 interval->initialized = 1; in PHP_FUNCTION()
[all …]
H A Dphp_date.h109 timelib_rel_time *interval; member
H A Dphp_date.stub.php185 function date_add(DateTime $object, DateInterval $interval): DateTime {} argument
187 function date_sub(DateTime $object, DateInterval $interval): DateTime {} argument
392 public function add(DateInterval $interval): DateTime {} argument
397 public function sub(DateInterval $interval): DateTime {} argument
527 public function add(DateInterval $interval): DateTimeImmutable {} argument
530 public function sub(DateInterval $interval): DateTimeImmutable {} argument
728 public ?DateInterval $interval; variable in DatePeriod
740 * @param DateInterval|int $interval
744 public function __construct($start, $interval = UNKNOWN, $end = UNKNOWN, $options = UNKNOWN) {} argument
H A Dphp_date_arginfo.h103 ZEND_ARG_OBJ_INFO(0, interval, DateInterval, 0)
299 ZEND_ARG_OBJ_INFO(0, interval, DateInterval, 0)
384 ZEND_ARG_OBJ_INFO(0, interval, DateInterval, 0)
489 ZEND_ARG_INFO(0, interval)
/php-src/ext/date/lib/
H A Dinterval.c216 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 …]
H A Dtimelib.h1075 timelib_time *timelib_add(timelib_time *t, timelib_rel_time *interval);
1076 timelib_time *timelib_add_wall(timelib_time *t, timelib_rel_time *interval);
1085 timelib_time *timelib_sub(timelib_time *t, timelib_rel_time *interval);
1086 timelib_time *timelib_sub_wall(timelib_time *t, timelib_rel_time *interval);
/php-src/ext/date/tests/
H A DDateInterval_construct_exceptions.phpt21 DateMalformedIntervalStringException: Failed to parse interval (2007-05-11T15:30:00Z/)
H A DDateInterval_days_prop1.phpt6 $interval = new DateInterval('P2Y4DT6H8M');
8 var_dump($interval->days);
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 DDateInterval_format_a.phpt14 $interval = $date1->diff($date2);
16 echo $interval->format('a=%a') . "\n";
H A DDateInterval_serialize-001.phpt22 echo "\n\nUsed serialised interval:\n";
107 Used serialised interval:
H A DDateInterval_serialize-002.phpt41 echo "\n\nUsed serialised interval:\n";
151 Used serialised interval:
H A DDateInterval_serialize-003.phpt32 echo "\n\nUsed serialised interval:\n";
82 Used serialised interval:
H A DDateInterval_write_property_return.phpt6 $interval = new DateInterval('P2Y4DT6H8M');
8 var_dump($interval->f = $f);
H A DDatePeriod_by_ref_iterator.phpt7 …'interval' => DateInterval::createFromDateString("tomorrow"), 'recurrences' => 1, 'include_start_d…
H A DDatePeriod_createFromISO8601String_static_return.phpt38 ["interval"]=>
69 DatePeriod::createFromISO8601String(): ISO interval must contain an interval, "R4/2012-07-01T00:00:…
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 DDatePeriod_modify_readonly_property.phpt12 $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 DDatePeriod_no_advance_on_valid.phpt8 $interval = DateInterval::createFromDateString('1 day');
9 $period = new DatePeriod($start, $interval, $end);
23 $period = new DatePeriod($start, $interval, $end, DatePeriod::EXCLUDE_START_DATE);
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 DDatePeriod_properties2.phpt16 "interval",
51 Error: Cannot modify readonly property DatePeriod::$interval
52 Error: Cannot modify readonly property DatePeriod::$interval
H A DDatePeriod_serialize-001.phpt39 ["interval"]=>
72 …type";i:1;s:8:"timezone";s:6:"+00:00";}s:7:"current";N;s:3:"end";N;s:8:"interval";O:12:"DateInterv…
90 ["interval"]=>
137 ["interval"]=>
H A DDatePeriod_serialize-002.phpt54 ["interval"]=>
87 …000";s:13:"timezone_type";i:3;s:8:"timezone";s:13:"Europe/London";}s:8:"interval";O:12:"DateInterv…
112 ["interval"]=>
166 ["interval"]=>

Completed in 67 milliseconds

1234