Lines Matching refs:tzi
689 timelib_tzinfo *tzi = (timelib_tzinfo*)Z_PTR_P(zv); in _php_date_tzinfo_dtor() local
691 timelib_tzinfo_dtor(tzi); in _php_date_tzinfo_dtor()
927 timelib_tzinfo *tzi; in php_date_parse_tzfile() local
934 if ((tzi = zend_hash_str_find_ptr(DATEG(tzcache), formal_tzname, strlen(formal_tzname))) != NULL) { in php_date_parse_tzfile()
935 return tzi; in php_date_parse_tzfile()
938 tzi = timelib_parse_tzfile(formal_tzname, tzdb); in php_date_parse_tzfile()
939 if (tzi) { in php_date_parse_tzfile()
940 zend_hash_str_add_ptr(DATEG(tzcache), formal_tzname, strlen(formal_tzname), tzi); in php_date_parse_tzfile()
942 return tzi; in php_date_parse_tzfile()
1010 timelib_tzinfo *tzi; in get_timezone_info() local
1013 tzi = php_date_parse_tzfile(tz, DATE_TIMEZONEDB); in get_timezone_info()
1014 if (! tzi) { in get_timezone_info()
1017 return tzi; in get_timezone_info()
1259 timelib_tzinfo *tzi; in php_format_date() local
1265 tzi = get_timezone_info(); in php_format_date()
1266 t->tz_info = tzi; in php_format_date()
1270 tzi = NULL; in php_format_date()
1286 timelib_tzinfo *tzi; in php_idate() local
1294 tzi = get_timezone_info(); in php_idate()
1295 t->tz_info = tzi; in php_idate()
1299 tzi = NULL; in php_idate()
1472 timelib_tzinfo *tzi; in PHP_FUNCTION() local
1478 tzi = get_timezone_info(); in PHP_FUNCTION()
1481 now->tz_info = tzi; in PHP_FUNCTION()
1490 timelib_update_ts(t, tzi); in PHP_FUNCTION()
1509 timelib_tzinfo *tzi = NULL; in php_mktime() local
1521 tzi = get_timezone_info(); in php_mktime()
1522 now->tz_info = tzi; in php_mktime()
1560 timelib_update_ts(now, tzi); in php_mktime()
1620 timelib_tzinfo *tzi; in php_strftime() local
1636 tzi = NULL; in php_strftime()
1639 tzi = get_timezone_info(); in php_strftime()
1640 ts->tz_info = tzi; in php_strftime()
1661 offset = timelib_get_time_zone_info(timestamp, tzi); in php_strftime()
1736 timelib_tzinfo *tzi; in PHP_FUNCTION() local
1743 tzi = get_timezone_info(); in PHP_FUNCTION()
1745 ts->tz_info = tzi; in PHP_FUNCTION()
1782 timelib_tzinfo *tzi; in PHP_FUNCTION() local
1789 tzi = get_timezone_info(); in PHP_FUNCTION()
1791 ts->tz_info = tzi; in PHP_FUNCTION()
2311 new_obj->tzi.tz = old_obj->tzi.tz; in date_object_clone_timezone()
2314 new_obj->tzi.utc_offset = old_obj->tzi.utc_offset; in date_object_clone_timezone()
2317 new_obj->tzi.z.utc_offset = old_obj->tzi.z.utc_offset; in date_object_clone_timezone()
2318 new_obj->tzi.z.dst = old_obj->tzi.z.dst; in date_object_clone_timezone()
2319 new_obj->tzi.z.abbr = timelib_strdup(old_obj->tzi.z.abbr); in date_object_clone_timezone()
2346 ZVAL_STRING(&zv, tzobj->tzi.tz->name); in date_object_get_properties_timezone()
2352 tzobj->tzi.utc_offset > 0 ? '-' : '+', in date_object_get_properties_timezone()
2353 abs(tzobj->tzi.utc_offset / 60), in date_object_get_properties_timezone()
2354 abs((tzobj->tzi.utc_offset % 60))); in date_object_get_properties_timezone()
2360 ZVAL_STRING(&zv, tzobj->tzi.z.abbr); in date_object_get_properties_timezone()
2497 timelib_free(intern->tzi.z.abbr); in date_object_free_storage_timezone()
2551 timelib_tzinfo *tzi = NULL; in php_date_initialize() local
2587 tzi = tzobj->tzi.tz; in php_date_initialize()
2590 new_offset = tzobj->tzi.utc_offset; in php_date_initialize()
2593 new_offset = tzobj->tzi.z.utc_offset; in php_date_initialize()
2594 new_dst = tzobj->tzi.z.dst; in php_date_initialize()
2595 new_abbr = timelib_strdup(tzobj->tzi.z.abbr); in php_date_initialize()
2600 tzi = dateobj->time->tz_info; in php_date_initialize()
2602 tzi = get_timezone_info(); in php_date_initialize()
2609 now->tz_info = tzi; in php_date_initialize()
2623 timelib_update_ts(dateobj->time, tzi); in php_date_initialize()
2791 timelib_tzinfo *tzi; in php_date_initialize_from_hash() local
2814 tzi = php_date_parse_tzfile(Z_STRVAL_P(z_timezone), DATE_TIMEZONEDB); in php_date_initialize_from_hash()
2816 if (tzi == NULL) { in php_date_initialize_from_hash()
2822 tzobj->tzi.tz = tzi; in php_date_initialize_from_hash()
3283 tzobj->tzi.tz = t->tz_info; in set_timezone_from_timelib_time()
3286 tzobj->tzi.utc_offset = t->z; in set_timezone_from_timelib_time()
3289 tzobj->tzi.z.utc_offset = t->z; in set_timezone_from_timelib_time()
3290 tzobj->tzi.z.dst = t->dst; in set_timezone_from_timelib_time()
3291 tzobj->tzi.z.abbr = timelib_strdup(t->tz_abbr); in set_timezone_from_timelib_time()
3332 timelib_set_timezone_from_offset(dateobj->time, tzobj->tzi.utc_offset); in php_date_timezone_set()
3335 timelib_set_timezone_from_abbr(dateobj->time, tzobj->tzi.z); in php_date_timezone_set()
3338 timelib_set_timezone(dateobj->time, tzobj->tzi.tz); in php_date_timezone_set()
3813 RETURN_STRING(tzobj->tzi.tz->name); in PHP_FUNCTION()
3817 timelib_sll utc_offset = tzobj->tzi.utc_offset; in PHP_FUNCTION()
3828 RETURN_STRING(tzobj->tzi.z.abbr); in PHP_FUNCTION()
3878 offset = timelib_get_time_zone_info(dateobj->time->sse, tzobj->tzi.tz); in PHP_FUNCTION()
3883 RETURN_LONG(tzobj->tzi.utc_offset * -60); in PHP_FUNCTION()
3886 RETURN_LONG((tzobj->tzi.z.utc_offset - (tzobj->tzi.z.dst*60)) * -60); in PHP_FUNCTION()
3915 add_assoc_long(&element, "offset", tzobj->tzi.tz->type[0].offset); \ in PHP_FUNCTION()
3916 add_assoc_bool(&element, "isdst", tzobj->tzi.tz->type[0].isdst); \ in PHP_FUNCTION()
3917 …add_assoc_string(&element, "abbr", &tzobj->tzi.tz->timezone_abbr[tzobj->tzi.tz->type[0].abbr_idx])… in PHP_FUNCTION()
3924 add_assoc_long(&element, "offset", tzobj->tzi.tz->type[tzobj->tzi.tz->trans_idx[i]].offset); \ in PHP_FUNCTION()
3925 add_assoc_bool(&element, "isdst", tzobj->tzi.tz->type[tzobj->tzi.tz->trans_idx[i]].isdst); \ in PHP_FUNCTION()
3926 …add_assoc_string(&element, "abbr", &tzobj->tzi.tz->timezone_abbr[tzobj->tzi.tz->type[tzobj->tzi.tz… in PHP_FUNCTION()
3929 #define add_last() add(tzobj->tzi.tz->bit32.timecnt - 1, timestamp_begin) in PHP_FUNCTION()
3940 if (tzobj->tzi.tz->bit32.timecnt > 0) { in PHP_FUNCTION()
3942 if (tzobj->tzi.tz->trans[begin] > timestamp_begin) { in PHP_FUNCTION()
3952 } while (begin < tzobj->tzi.tz->bit32.timecnt); in PHP_FUNCTION()
3957 if (tzobj->tzi.tz->bit32.timecnt > 0) { in PHP_FUNCTION()
3963 for (i = begin; i < tzobj->tzi.tz->bit32.timecnt; ++i) { in PHP_FUNCTION()
3964 if (tzobj->tzi.tz->trans[i] < timestamp_end) { in PHP_FUNCTION()
3965 add(i, tzobj->tzi.tz->trans[i]); in PHP_FUNCTION()
3990 add_assoc_string(return_value, "country_code", tzobj->tzi.tz->location.country_code); in PHP_FUNCTION()
3991 add_assoc_double(return_value, "latitude", tzobj->tzi.tz->location.latitude); in PHP_FUNCTION()
3992 add_assoc_double(return_value, "longitude", tzobj->tzi.tz->location.longitude); in PHP_FUNCTION()
3993 add_assoc_string(return_value, "comments", tzobj->tzi.tz->location.comments); in PHP_FUNCTION()
4740 timelib_tzinfo *tzi; in php_do_date_sunrise_sunset() local
4779 tzi = get_timezone_info(); in php_do_date_sunrise_sunset()
4780 t->tz_info = tzi; in php_do_date_sunrise_sunset()
4839 timelib_tzinfo *tzi; in PHP_FUNCTION() local
4850 tzi = get_timezone_info(); in PHP_FUNCTION()
4851 t->tz_info = tzi; in PHP_FUNCTION()