   Get date interval.
*/ 
PHP_METHOD(DatePeriod, getDateInterval)
{
	php_period_obj   *dpobj;
	php_interval_obj *diobj;
        
        if (zend_parse_parameters_none() == FAILURE) {
                return;
        }

	dpobj = (php_period_obj *)zend_object_store_get_object(getThis() TSRMLS_CC);

	php_date_instantiate(date_ce_interval, return_value TSRMLS_CC);
	diobj = (php_interval_obj *)zend_object_store_get_object(return_value TSRMLS_CC);
	diobj->diff = timelib_rel_time_clone(dpobj->interval);
   Get date interval.
*/ 
PHP_METHOD(DatePeriod, getDateInterval)
{
	php_period_obj   *dpobj;
	php_interval_obj *diobj;
        
        if (zend_parse_parameters_none() == FAILURE) {
                return;
        }

	dpobj = (php_period_obj *)zend_object_store_get_object(getThis() TSRMLS_CC);

	php_date_instantiate(date_ce_interval, return_value TSRMLS_CC);
	diobj = (php_interval_obj *)zend_object_store_get_object(return_value TSRMLS_CC);
	diobj->diff = timelib_rel_time_clone(dpobj->interval);