Lines Matching refs:tzi

226 	timelib_tzinfo *tzi = (timelib_tzinfo*)Z_PTR_P(zv);  in _php_date_tzinfo_dtor()  local
228 timelib_tzinfo_dtor(tzi); in _php_date_tzinfo_dtor()
471 timelib_tzinfo *tzi; in php_date_parse_tzfile() local
479 if ((tzi = zend_hash_str_find_ptr(DATEG(tzcache), formal_tzname, strlen(formal_tzname))) != NULL) { in php_date_parse_tzfile()
480 return tzi; in php_date_parse_tzfile()
483 tzi = timelib_parse_tzfile(formal_tzname, tzdb, &dummy_error_code); in php_date_parse_tzfile()
484 if (tzi) { in php_date_parse_tzfile()
485 zend_hash_str_add_ptr(DATEG(tzcache), formal_tzname, strlen(formal_tzname), tzi); in php_date_parse_tzfile()
487 return tzi; in php_date_parse_tzfile()
555 timelib_tzinfo *tzi; in get_timezone_info() local
558 tzi = php_date_parse_tzfile(tz, DATE_TIMEZONEDB); in get_timezone_info()
559 if (! tzi) { in get_timezone_info()
562 return tzi; in get_timezone_info()
814 timelib_tzinfo *tzi; in php_format_date() local
820 tzi = get_timezone_info(); in php_format_date()
821 t->tz_info = tzi; in php_format_date()
825 tzi = NULL; in php_format_date()
840 timelib_tzinfo *tzi; in php_idate() local
848 tzi = get_timezone_info(); in php_idate()
849 t->tz_info = tzi; in php_idate()
853 tzi = NULL; in php_idate()
1024 timelib_tzinfo *tzi; in PHP_FUNCTION() local
1037 tzi = get_timezone_info(); in PHP_FUNCTION()
1038 if (!tzi) { in PHP_FUNCTION()
1043 now->tz_info = tzi; in PHP_FUNCTION()
1059 timelib_update_ts(t, tzi); in PHP_FUNCTION()
1080 timelib_tzinfo *tzi = NULL; in php_mktime() local
1099 tzi = get_timezone_info(); in php_mktime()
1100 if (!tzi) { in php_mktime()
1103 now->tz_info = tzi; in php_mktime()
1139 timelib_update_ts(now, tzi); in php_mktime()
1200 timelib_tzinfo *tzi; in php_strftime() local
1220 tzi = NULL; in php_strftime()
1223 tzi = get_timezone_info(); in php_strftime()
1224 if (!tzi) { in php_strftime()
1227 ts->tz_info = tzi; in php_strftime()
1248 offset = timelib_get_time_zone_info(timestamp, tzi); in php_strftime()
1321 timelib_tzinfo *tzi; in PHP_FUNCTION() local
1334 tzi = get_timezone_info(); in PHP_FUNCTION()
1335 if (!tzi) { in PHP_FUNCTION()
1339 ts->tz_info = tzi; in PHP_FUNCTION()
1376 timelib_tzinfo *tzi; in PHP_FUNCTION() local
1388 tzi = get_timezone_info(); in PHP_FUNCTION()
1389 if (!tzi) { in PHP_FUNCTION()
1393 ts->tz_info = tzi; in PHP_FUNCTION()
1919 new_obj->tzi.tz = old_obj->tzi.tz; in date_object_clone_timezone()
1922 new_obj->tzi.utc_offset = old_obj->tzi.utc_offset; in date_object_clone_timezone()
1925 new_obj->tzi.z.utc_offset = old_obj->tzi.z.utc_offset; in date_object_clone_timezone()
1926 new_obj->tzi.z.dst = old_obj->tzi.z.dst; in date_object_clone_timezone()
1927 new_obj->tzi.z.abbr = timelib_strdup(old_obj->tzi.z.abbr); in date_object_clone_timezone()
1955 return o1->tzi.utc_offset == o2->tzi.utc_offset ? 0 : 1; in date_object_compare_timezone()
1957 return strcmp(o1->tzi.z.abbr, o2->tzi.z.abbr) ? 1 : 0; in date_object_compare_timezone()
1959 return strcmp(o1->tzi.tz->name, o2->tzi.tz->name) ? 1 : 0; in date_object_compare_timezone()
1968 ZVAL_STRING(zv, tzobj->tzi.tz->name); in php_timezone_to_string()
1972 timelib_sll utc_offset = tzobj->tzi.utc_offset; in php_timezone_to_string()
1983 ZVAL_STRING(zv, tzobj->tzi.z.abbr); in php_timezone_to_string()
2170 timelib_free(intern->tzi.z.abbr); in date_object_free_storage_timezone()
2243 timelib_tzinfo *tzi = NULL; in php_date_initialize() local
2289 tzi = tzobj->tzi.tz; in php_date_initialize()
2292 new_offset = tzobj->tzi.utc_offset; in php_date_initialize()
2295 new_offset = tzobj->tzi.z.utc_offset; in php_date_initialize()
2296 new_dst = tzobj->tzi.z.dst; in php_date_initialize()
2297 new_abbr = timelib_strdup(tzobj->tzi.z.abbr); in php_date_initialize()
2302 tzi = dateobj->time->tz_info; in php_date_initialize()
2304 tzi = get_timezone_info(); in php_date_initialize()
2305 if (!tzi) { in php_date_initialize()
2314 now->tz_info = tzi; in php_date_initialize()
2335 timelib_update_ts(dateobj->time, tzi); in php_date_initialize()
2559 timelib_tzinfo *tzi; in php_date_initialize_from_hash() local
2582 tzi = php_date_parse_tzfile(Z_STRVAL_P(z_timezone), DATE_TIMEZONEDB); in php_date_initialize_from_hash()
2584 if (tzi == NULL) { in php_date_initialize_from_hash()
2590 tzobj->tzi.tz = tzi; in php_date_initialize_from_hash()
3059 tzobj->tzi.tz = t->tz_info; in set_timezone_from_timelib_time()
3062 tzobj->tzi.utc_offset = t->z; in set_timezone_from_timelib_time()
3065 tzobj->tzi.z.utc_offset = t->z; in set_timezone_from_timelib_time()
3066 tzobj->tzi.z.dst = t->dst; in set_timezone_from_timelib_time()
3067 tzobj->tzi.z.abbr = timelib_strdup(t->tz_abbr); in set_timezone_from_timelib_time()
3106 timelib_set_timezone_from_offset(dateobj->time, tzobj->tzi.utc_offset); in php_date_timezone_set()
3109 timelib_set_timezone_from_abbr(dateobj->time, tzobj->tzi.z); in php_date_timezone_set()
3112 timelib_set_timezone(dateobj->time, tzobj->tzi.tz); in php_date_timezone_set()
3623 offset = timelib_get_time_zone_info(dateobj->time->sse, tzobj->tzi.tz); in PHP_FUNCTION()
3628 RETURN_LONG(tzobj->tzi.utc_offset); in PHP_FUNCTION()
3631 RETURN_LONG(tzobj->tzi.z.utc_offset + (tzobj->tzi.z.dst * 3600)); in PHP_FUNCTION()
3658 add_assoc_long(&element, "offset", tzobj->tzi.tz->type[0].offset); \ in PHP_FUNCTION()
3659 add_assoc_bool(&element, "isdst", tzobj->tzi.tz->type[0].isdst); \ in PHP_FUNCTION()
3660 …add_assoc_string(&element, "abbr", &tzobj->tzi.tz->timezone_abbr[tzobj->tzi.tz->type[0].abbr_idx])… in PHP_FUNCTION()
3667 add_assoc_long(&element, "offset", tzobj->tzi.tz->type[tzobj->tzi.tz->trans_idx[i]].offset); \ in PHP_FUNCTION()
3668 add_assoc_bool(&element, "isdst", tzobj->tzi.tz->type[tzobj->tzi.tz->trans_idx[i]].isdst); \ in PHP_FUNCTION()
3669 …add_assoc_string(&element, "abbr", &tzobj->tzi.tz->timezone_abbr[tzobj->tzi.tz->type[tzobj->tzi.tz… in PHP_FUNCTION()
3672 #define add_last() add(tzobj->tzi.tz->bit64.timecnt - 1, timestamp_begin) in PHP_FUNCTION()
3683 if (tzobj->tzi.tz->bit64.timecnt > 0) { in PHP_FUNCTION()
3685 if (tzobj->tzi.tz->trans[begin] > timestamp_begin) { in PHP_FUNCTION()
3695 } while (begin < tzobj->tzi.tz->bit64.timecnt); in PHP_FUNCTION()
3700 if (tzobj->tzi.tz->bit64.timecnt > 0) { in PHP_FUNCTION()
3707 for (i = begin; i < tzobj->tzi.tz->bit64.timecnt; ++i) { in PHP_FUNCTION()
3708 if (tzobj->tzi.tz->trans[i] < timestamp_end) { in PHP_FUNCTION()
3709 add(i, tzobj->tzi.tz->trans[i]); in PHP_FUNCTION()
3732 add_assoc_string(return_value, "country_code", tzobj->tzi.tz->location.country_code); in PHP_FUNCTION()
3733 add_assoc_double(return_value, "latitude", tzobj->tzi.tz->location.latitude); in PHP_FUNCTION()
3734 add_assoc_double(return_value, "longitude", tzobj->tzi.tz->location.longitude); in PHP_FUNCTION()
3735 add_assoc_string(return_value, "comments", tzobj->tzi.tz->location.comments); in PHP_FUNCTION()
4536 timelib_tzinfo *tzi; in php_do_date_sunrise_sunset() local
4575 tzi = get_timezone_info(); in php_do_date_sunrise_sunset()
4576 if (!tzi) { in php_do_date_sunrise_sunset()
4580 t->tz_info = tzi; in php_do_date_sunrise_sunset()
4636 timelib_tzinfo *tzi; in PHP_FUNCTION() local
4649 tzi = get_timezone_info(); in PHP_FUNCTION()
4650 if (!tzi) { in PHP_FUNCTION()
4654 t->tz_info = tzi; in PHP_FUNCTION()