Lines Matching refs:interval
1521 static void date_period_advance(timelib_time *it_time, timelib_rel_time *interval) in date_period_advance() argument
1524 it_time->relative = *interval; in date_period_advance()
1537 date_period_advance(it_time, object->interval); in date_period_it_move_forward()
1561 date_period_advance(iterator->object->current, iterator->object->interval); in date_period_it_rewind()
2148 if (old_obj->interval) { in date_object_clone_period()
2149 new_obj->interval = timelib_rel_time_clone(old_obj->interval); in date_object_clone_period()
2199 timelib_rel_time_dtor(intern->interval); in date_object_free_storage_period()
2952 static void php_date_add(zval *object, zval *interval, zval *return_value) /* {{{ */ in php_date_add() argument
2960 intobj = Z_PHPINTERVAL_P(interval); in php_date_add()
2971 zval *object, *interval; in PHP_FUNCTION() local
2973 …od_parameters(ZEND_NUM_ARGS(), getThis(), "OO", &object, date_ce_date, &interval, date_ce_interval… in PHP_FUNCTION()
2977 php_date_add(object, interval, return_value); in PHP_FUNCTION()
2986 zval *object, *interval, new_object; in PHP_METHOD() local
2989 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O", &interval, date_ce_interval) == FAILURE) { in PHP_METHOD()
2994 php_date_add(&new_object, interval, return_value); in PHP_METHOD()
3000 static void php_date_sub(zval *object, zval *interval, zval *return_value) /* {{{ */ in php_date_sub() argument
3008 intobj = Z_PHPINTERVAL_P(interval); in php_date_sub()
3024 zval *object, *interval; in PHP_FUNCTION() local
3026 …od_parameters(ZEND_NUM_ARGS(), getThis(), "OO", &object, date_ce_date, &interval, date_ce_interval… in PHP_FUNCTION()
3030 php_date_sub(object, interval, return_value); in PHP_FUNCTION()
3039 zval *object, *interval, new_object; in PHP_METHOD() local
3042 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O", &interval, date_ce_interval) == FAILURE) { in PHP_METHOD()
3047 php_date_sub(&new_object, interval, return_value); in PHP_METHOD()
3405 php_interval_obj *interval; in PHP_FUNCTION() local
3419 interval = Z_PHPINTERVAL_P(return_value); in PHP_FUNCTION()
3420 interval->diff = timelib_diff(dateobj1->time, dateobj2->time); in PHP_FUNCTION()
3422 interval->diff->invert = 0; in PHP_FUNCTION()
3424 interval->initialized = 1; in PHP_FUNCTION()
4193 zval *start, *end = NULL, *interval; in PHP_METHOD() local
4200 …RSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "OOl|l", &start, date_ce_interface, &interval, date_ce_interval… in PHP_METHOD()
4201 …RSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "OOO|l", &start, date_ce_interface, &interval, date_ce_interval… in PHP_METHOD()
4214 …date_period_initialize(&(dpobj->start), &(dpobj->end), &(dpobj->interval), &recurrences, isostr, i… in PHP_METHOD()
4226 if (dpobj->interval == NULL) { in PHP_METHOD()
4248 php_interval_obj *intobj = Z_PHPINTERVAL_P(interval); in PHP_METHOD()
4264 dpobj->interval = timelib_rel_time_clone(intobj->diff); in PHP_METHOD()
4351 DATE_CHECK_INITIALIZED(dpobj->interval, DatePeriod); in PHP_METHOD()
4355 diobj->diff = timelib_rel_time_clone(dpobj->interval); in PHP_METHOD()
4789 if (period_obj->interval) { in date_object_get_properties_period()
4793 interval_obj->diff = timelib_rel_time_clone(period_obj->interval); in date_object_get_properties_period()
4861 period_obj->interval = timelib_rel_time_clone(interval_obj->diff); in php_date_period_initialize_from_hash()