Lines Matching refs:tz

558 	char *tz;  in get_timezone_info()  local
561 tz = guess_timezone(DATE_TIMEZONEDB); in get_timezone_info()
562 tzi = php_date_parse_tzfile(tz, DATE_TIMEZONEDB); in get_timezone_info()
1978 new_obj->tzi.tz = old_obj->tzi.tz; in date_object_clone_timezone()
2018 return strcmp(o1->tzi.tz->name, o2->tzi.tz->name) ? 1 : 0; in date_object_compare_timezone()
2027 ZVAL_STRING(zv, tzobj->tzi.tz->name); in php_timezone_to_string()
2414 tzi = tzobj->tzi.tz; in php_date_initialize()
2731 tzobj->tzi.tz = tzi; in php_date_initialize_from_hash()
3340 tzobj->tzi.tz = t->tz_info; in set_timezone_from_timelib_time()
3393 timelib_set_timezone(dateobj->time, tzobj->tzi.tz); in php_date_timezone_set()
3711 static bool timezone_initialize(php_timezone_obj *tzobj, const char *tz, size_t tz_len) /* {{{ */ in timezone_initialize() argument
3715 const char *orig_tz = tz; in timezone_initialize()
3717 if (strlen(tz) != tz_len) { in timezone_initialize()
3723 …dummy_t->z = timelib_parse_zone(&tz, &dst, dummy_t, &not_found, DATE_TIMEZONEDB, php_date_parse_tz… in timezone_initialize()
3731 if (!not_found && (*tz != '\0')) { in timezone_initialize()
3752 zend_string *tz; in PHP_FUNCTION() local
3756 Z_PARAM_PATH_STR(tz) /* To prevent null bytes */ in PHP_FUNCTION()
3760 if (!timezone_initialize(tzobj, ZSTR_VAL(tz), ZSTR_LEN(tz))) { in PHP_FUNCTION()
3770 zend_string *tz; in PHP_METHOD() local
3775 Z_PARAM_PATH_STR(tz) /* To prevent null bytes */ in PHP_METHOD()
3780 timezone_initialize(tzobj, ZSTR_VAL(tz), ZSTR_LEN(tz)); in PHP_METHOD()
3976 offset = timelib_get_time_zone_info(dateobj->time->sse, tzobj->tzi.tz); in PHP_FUNCTION()
4012 add_assoc_long(&element, "offset", tzobj->tzi.tz->type[0].offset); \ in PHP_FUNCTION()
4013 add_assoc_bool(&element, "isdst", tzobj->tzi.tz->type[0].isdst); \ in PHP_FUNCTION()
4014 …add_assoc_string(&element, "abbr", &tzobj->tzi.tz->timezone_abbr[tzobj->tzi.tz->type[0].abbr_idx])… in PHP_FUNCTION()
4021 add_assoc_long(&element, "offset", tzobj->tzi.tz->type[tzobj->tzi.tz->trans_idx[i]].offset); \ in PHP_FUNCTION()
4022 add_assoc_bool(&element, "isdst", tzobj->tzi.tz->type[tzobj->tzi.tz->trans_idx[i]].isdst); \ in PHP_FUNCTION()
4023 …add_assoc_string(&element, "abbr", &tzobj->tzi.tz->timezone_abbr[tzobj->tzi.tz->type[tzobj->tzi.tz in PHP_FUNCTION()
4030 add_assoc_long(&element, "offset", tzobj->tzi.tz->type[i].offset); \ in PHP_FUNCTION()
4031 add_assoc_bool(&element, "isdst", tzobj->tzi.tz->type[i].isdst); \ in PHP_FUNCTION()
4032 …add_assoc_string(&element, "abbr", &tzobj->tzi.tz->timezone_abbr[tzobj->tzi.tz->type[i].abbr_idx])… in PHP_FUNCTION()
4044 #define add_last() add(tzobj->tzi.tz->bit64.timecnt - 1, timestamp_begin) in PHP_FUNCTION()
4055 if (tzobj->tzi.tz->bit64.timecnt > 0) { in PHP_FUNCTION()
4057 if (tzobj->tzi.tz->trans[begin] > timestamp_begin) { in PHP_FUNCTION()
4067 } while (begin < tzobj->tzi.tz->bit64.timecnt); in PHP_FUNCTION()
4072 if (tzobj->tzi.tz->bit64.timecnt > 0) { in PHP_FUNCTION()
4073 if (tzobj->tzi.tz->posix_info && tzobj->tzi.tz->posix_info->dst_end) { in PHP_FUNCTION()
4074 timelib_time_offset *tto = timelib_get_time_zone_info(timestamp_begin, tzobj->tzi.tz); in PHP_FUNCTION()
4085 for (i = begin; i < tzobj->tzi.tz->bit64.timecnt; ++i) { in PHP_FUNCTION()
4086 if (tzobj->tzi.tz->trans[i] < timestamp_end) { in PHP_FUNCTION()
4087 add(i, tzobj->tzi.tz->trans[i]); in PHP_FUNCTION()
4093 if (tzobj->tzi.tz->posix_info && tzobj->tzi.tz->posix_info->dst_end) { in PHP_FUNCTION()
4096 timelib_sll last_transition_ts = tzobj->tzi.tz->trans[tzobj->tzi.tz->bit64.timecnt - 1]; in PHP_FUNCTION()
4107 timelib_get_transitions_for_year(tzobj->tzi.tz, i, &transitions); in PHP_FUNCTION()
4142 add_assoc_string(return_value, "country_code", tzobj->tzi.tz->location.country_code); in PHP_FUNCTION()
4143 add_assoc_double(return_value, "latitude", tzobj->tzi.tz->location.latitude); in PHP_FUNCTION()
4144 add_assoc_double(return_value, "longitude", tzobj->tzi.tz->location.longitude); in PHP_FUNCTION()
4145 add_assoc_string(return_value, "comments", tzobj->tzi.tz->location.comments); in PHP_FUNCTION()