/* {{{ proto string UTCDatetime::toDateTime() Returns DateTime object representing this UTCDateTime */ PHP_METHOD(UTCDatetime, toDateTime) { php_phongo_utcdatetime_t *intern; intern = (php_phongo_utcdatetime_t *)zend_object_store_get_object(getThis() TSRMLS_CC); if (zend_parse_parameters_none() == FAILURE) { return; } php_phongo_new_datetime_from_utcdatetime(return_value, intern->milliseconds TSRMLS_CC); }
/* {{{ proto string UTCDateTime::toDateTime() Returns DateTime object representing this UTCDateTime */ PHP_METHOD(UTCDateTime, toDateTime) { php_phongo_utcdatetime_t *intern; intern = Z_UTCDATETIME_OBJ_P(getThis()); if (zend_parse_parameters_none() == FAILURE) { return; } php_phongo_new_datetime_from_utcdatetime(return_value, intern->milliseconds TSRMLS_CC); }