tzobj 2329 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 2332 ext/date/php_date.c tzobj = (php_timezone_obj *) zend_object_store_get_object(object TSRMLS_CC); tzobj 2336 ext/date/php_date.c if (!tzobj->initialized) { tzobj 2341 ext/date/php_date.c ZVAL_LONG(zv, tzobj->type); tzobj 2345 ext/date/php_date.c switch (tzobj->type) { tzobj 2347 ext/date/php_date.c ZVAL_STRING(zv, tzobj->tzi.tz->name, 1); tzobj 2353 ext/date/php_date.c tzobj->tzi.utc_offset > 0 ? '-' : '+', tzobj 2354 ext/date/php_date.c abs(tzobj->tzi.utc_offset / 60), tzobj 2355 ext/date/php_date.c abs((tzobj->tzi.utc_offset % 60))); tzobj 2361 ext/date/php_date.c ZVAL_STRING(zv, tzobj->tzi.z.abbr, 1); tzobj 2600 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 2602 ext/date/php_date.c tzobj = (php_timezone_obj *) zend_object_store_get_object(timezone_object TSRMLS_CC); tzobj 2603 ext/date/php_date.c switch (tzobj->type) { tzobj 2605 ext/date/php_date.c tzi = tzobj->tzi.tz; tzobj 2608 ext/date/php_date.c new_offset = tzobj->tzi.utc_offset; tzobj 2611 ext/date/php_date.c new_offset = tzobj->tzi.z.utc_offset; tzobj 2612 ext/date/php_date.c new_dst = tzobj->tzi.z.dst; tzobj 2613 ext/date/php_date.c new_abbr = strdup(tzobj->tzi.z.abbr); tzobj 2616 ext/date/php_date.c type = tzobj->type; tzobj 2814 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 2841 ext/date/php_date.c tzobj = zend_object_store_get_object(php_date_instantiate(date_ce_timezone, tmp_obj TSRMLS_CC) TSRMLS_CC); tzobj 2842 ext/date/php_date.c tzobj->type = TIMELIB_ZONETYPE_ID; tzobj 2843 ext/date/php_date.c tzobj->tzi.tz = tzi; tzobj 2844 ext/date/php_date.c tzobj->initialized = 1; tzobj 3298 ext/date/php_date.c static void set_timezone_from_timelib_time(php_timezone_obj *tzobj, timelib_time *t) tzobj 3300 ext/date/php_date.c tzobj->initialized = 1; tzobj 3301 ext/date/php_date.c tzobj->type = t->zone_type; tzobj 3304 ext/date/php_date.c tzobj->tzi.tz = t->tz_info; tzobj 3307 ext/date/php_date.c tzobj->tzi.utc_offset = t->z; tzobj 3310 ext/date/php_date.c tzobj->tzi.z.utc_offset = t->z; tzobj 3311 ext/date/php_date.c tzobj->tzi.z.dst = t->dst; tzobj 3312 ext/date/php_date.c tzobj->tzi.z.abbr = strdup(t->tz_abbr); tzobj 3325 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 3334 ext/date/php_date.c tzobj = (php_timezone_obj *) zend_object_store_get_object(return_value TSRMLS_CC); tzobj 3335 ext/date/php_date.c set_timezone_from_timelib_time(tzobj, dateobj->time); tzobj 3345 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 3349 ext/date/php_date.c tzobj = (php_timezone_obj *) zend_object_store_get_object(timezone_object TSRMLS_CC); tzobj 3351 ext/date/php_date.c switch (tzobj->type) { tzobj 3353 ext/date/php_date.c timelib_set_timezone_from_offset(dateobj->time, tzobj->tzi.utc_offset); tzobj 3356 ext/date/php_date.c timelib_set_timezone_from_abbr(dateobj->time, tzobj->tzi.z); tzobj 3359 ext/date/php_date.c timelib_set_timezone(dateobj->time, tzobj->tzi.tz); tzobj 3686 ext/date/php_date.c static int timezone_initialize(php_timezone_obj *tzobj, /*const*/ char *tz, size_t tz_len TSRMLS_DC) tzobj 3703 ext/date/php_date.c set_timezone_from_timelib_time(tzobj, dummy_t); tzobj 3717 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 3722 ext/date/php_date.c tzobj = zend_object_store_get_object(php_date_instantiate(date_ce_timezone, return_value TSRMLS_CC) TSRMLS_CC); tzobj 3723 ext/date/php_date.c if (SUCCESS != timezone_initialize(tzobj, tz, tz_len TSRMLS_CC)) { tzobj 3736 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 3741 ext/date/php_date.c tzobj = zend_object_store_get_object(getThis() TSRMLS_CC); tzobj 3742 ext/date/php_date.c if (FAILURE == timezone_initialize(tzobj, tz, tz_len TSRMLS_CC)) { tzobj 3750 ext/date/php_date.c static int php_date_timezone_initialize_from_hash(zval **return_value, php_timezone_obj **tzobj, HashTable *myht TSRMLS_DC) tzobj 3757 ext/date/php_date.c if (SUCCESS == timezone_initialize(*tzobj, Z_STRVAL_PP(z_timezone), Z_STRLEN_PP(z_timezone) TSRMLS_CC)) { tzobj 3769 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 3780 ext/date/php_date.c tzobj = (php_timezone_obj *) zend_object_store_get_object(return_value TSRMLS_CC); tzobj 3781 ext/date/php_date.c if(php_date_timezone_initialize_from_hash(&return_value, &tzobj, myht TSRMLS_CC) != SUCCESS) { tzobj 3792 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 3795 ext/date/php_date.c tzobj = (php_timezone_obj *) zend_object_store_get_object(object TSRMLS_CC); tzobj 3799 ext/date/php_date.c if(php_date_timezone_initialize_from_hash(&return_value, &tzobj, myht TSRMLS_CC) != SUCCESS) { tzobj 3811 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 3816 ext/date/php_date.c tzobj = (php_timezone_obj *) zend_object_store_get_object(object TSRMLS_CC); tzobj 3817 ext/date/php_date.c DATE_CHECK_INITIALIZED(tzobj->initialized, DateTimeZone); tzobj 3819 ext/date/php_date.c switch (tzobj->type) { tzobj 3821 ext/date/php_date.c RETURN_STRING(tzobj->tzi.tz->name, 1); tzobj 3825 ext/date/php_date.c timelib_sll utc_offset = tzobj->tzi.utc_offset; tzobj 3836 ext/date/php_date.c RETURN_STRING(tzobj->tzi.z.abbr, 1); tzobj 3872 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 3879 ext/date/php_date.c tzobj = (php_timezone_obj *) zend_object_store_get_object(object TSRMLS_CC); tzobj 3880 ext/date/php_date.c DATE_CHECK_INITIALIZED(tzobj->initialized, DateTimeZone); tzobj 3884 ext/date/php_date.c switch (tzobj->type) { tzobj 3886 ext/date/php_date.c offset = timelib_get_time_zone_info(dateobj->time->sse, tzobj->tzi.tz); tzobj 3891 ext/date/php_date.c RETURN_LONG(tzobj->tzi.utc_offset * -60); tzobj 3894 ext/date/php_date.c RETURN_LONG((tzobj->tzi.z.utc_offset - (tzobj->tzi.z.dst*60)) * -60); tzobj 3906 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 3913 ext/date/php_date.c tzobj = (php_timezone_obj *) zend_object_store_get_object(object TSRMLS_CC); tzobj 3914 ext/date/php_date.c DATE_CHECK_INITIALIZED(tzobj->initialized, DateTimeZone); tzobj 3915 ext/date/php_date.c if (tzobj->type != TIMELIB_ZONETYPE_ID) { tzobj 3924 ext/date/php_date.c add_assoc_long(element, "offset", tzobj->tzi.tz->type[0].offset); \ tzobj 3925 ext/date/php_date.c add_assoc_bool(element, "isdst", tzobj->tzi.tz->type[0].isdst); \ tzobj 3926 ext/date/php_date.c add_assoc_string(element, "abbr", &tzobj->tzi.tz->timezone_abbr[tzobj->tzi.tz->type[0].abbr_idx], 1); \ tzobj 3934 ext/date/php_date.c add_assoc_long(element, "offset", tzobj->tzi.tz->type[tzobj->tzi.tz->trans_idx[i]].offset); \ tzobj 3935 ext/date/php_date.c add_assoc_bool(element, "isdst", tzobj->tzi.tz->type[tzobj->tzi.tz->trans_idx[i]].isdst); \ tzobj 3936 ext/date/php_date.c add_assoc_string(element, "abbr", &tzobj->tzi.tz->timezone_abbr[tzobj->tzi.tz->type[tzobj->tzi.tz->trans_idx[i]].abbr_idx], 1); \ tzobj 3939 ext/date/php_date.c #define add_last() add(tzobj->tzi.tz->bit32.timecnt - 1, timestamp_begin) tzobj 3950 ext/date/php_date.c if (tzobj->tzi.tz->bit32.timecnt > 0) { tzobj 3952 ext/date/php_date.c if (tzobj->tzi.tz->trans[begin] > timestamp_begin) { tzobj 3962 ext/date/php_date.c } while (begin < tzobj->tzi.tz->bit32.timecnt); tzobj 3967 ext/date/php_date.c if (tzobj->tzi.tz->bit32.timecnt > 0) { tzobj 3973 ext/date/php_date.c for (i = begin; i < tzobj->tzi.tz->bit32.timecnt; ++i) { tzobj 3974 ext/date/php_date.c if (tzobj->tzi.tz->trans[i] < timestamp_end) { tzobj 3975 ext/date/php_date.c add(i, tzobj->tzi.tz->trans[i]); tzobj 3988 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 3993 ext/date/php_date.c tzobj = (php_timezone_obj *) zend_object_store_get_object(object TSRMLS_CC); tzobj 3994 ext/date/php_date.c DATE_CHECK_INITIALIZED(tzobj->initialized, DateTimeZone); tzobj 3995 ext/date/php_date.c if (tzobj->type != TIMELIB_ZONETYPE_ID) { tzobj 4000 ext/date/php_date.c add_assoc_string(return_value, "country_code", tzobj->tzi.tz->location.country_code, 1); tzobj 4001 ext/date/php_date.c add_assoc_double(return_value, "latitude", tzobj->tzi.tz->location.latitude); tzobj 4002 ext/date/php_date.c add_assoc_double(return_value, "longitude", tzobj->tzi.tz->location.longitude); tzobj 4003 ext/date/php_date.c add_assoc_string(return_value, "comments", tzobj->tzi.tz->location.comments, 1);