Lines Matching refs:tzi
690 timelib_tzinfo **tzi = (timelib_tzinfo **)tzinfo; in _php_date_tzinfo_dtor() local
692 timelib_tzinfo_dtor(*tzi); in _php_date_tzinfo_dtor()
915 timelib_tzinfo *tzi, **ptzi; in php_date_parse_tzfile() local
926 tzi = timelib_parse_tzfile(formal_tzname, tzdb); in php_date_parse_tzfile()
927 if (tzi) { in php_date_parse_tzfile()
928 …zend_hash_add(DATEG(tzcache), formal_tzname, strlen(formal_tzname) + 1, (void *) &tzi, sizeof(time… in php_date_parse_tzfile()
930 return tzi; in php_date_parse_tzfile()
998 timelib_tzinfo *tzi; in get_timezone_info() local
1001 tzi = php_date_parse_tzfile(tz, DATE_TIMEZONEDB TSRMLS_CC); in get_timezone_info()
1002 if (! tzi) { in get_timezone_info()
1005 return tzi; in get_timezone_info()
1248 timelib_tzinfo *tzi; in php_format_date() local
1254 tzi = get_timezone_info(TSRMLS_C); in php_format_date()
1255 t->tz_info = tzi; in php_format_date()
1259 tzi = NULL; in php_format_date()
1275 timelib_tzinfo *tzi; in php_idate() local
1283 tzi = get_timezone_info(TSRMLS_C); in php_idate()
1284 t->tz_info = tzi; in php_idate()
1288 tzi = NULL; in php_idate()
1460 timelib_tzinfo *tzi; in PHP_FUNCTION() local
1462 tzi = get_timezone_info(TSRMLS_C); in PHP_FUNCTION()
1471 timelib_update_ts(t, tzi); in PHP_FUNCTION()
1472 now->tz_info = tzi; in PHP_FUNCTION()
1480 now->tz_info = tzi; in PHP_FUNCTION()
1496 timelib_update_ts(t, tzi); in PHP_FUNCTION()
1515 timelib_tzinfo *tzi = NULL; in php_mktime() local
1527 tzi = get_timezone_info(TSRMLS_C); in php_mktime()
1528 now->tz_info = tzi; in php_mktime()
1566 timelib_update_ts(now, tzi); in php_mktime()
1579 tmp_offset = timelib_get_time_zone_info(now->sse, tzi); in php_mktime()
1646 timelib_tzinfo *tzi; in php_strftime() local
1661 tzi = NULL; in php_strftime()
1664 tzi = get_timezone_info(TSRMLS_C); in php_strftime()
1665 ts->tz_info = tzi; in php_strftime()
1686 offset = timelib_get_time_zone_info(timestamp, tzi); in php_strftime()
1761 timelib_tzinfo *tzi; in PHP_FUNCTION() local
1768 tzi = get_timezone_info(TSRMLS_C); in PHP_FUNCTION()
1770 ts->tz_info = tzi; in PHP_FUNCTION()
1807 timelib_tzinfo *tzi; in PHP_FUNCTION() local
1814 tzi = get_timezone_info(TSRMLS_C); in PHP_FUNCTION()
1816 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 = strdup(old_obj->tzi.z.abbr); in date_object_clone_timezone()
2348 ZVAL_STRING(zv, tzobj->tzi.tz->name, 1); in date_object_get_properties_timezone()
2354 tzobj->tzi.utc_offset > 0 ? '-' : '+', in date_object_get_properties_timezone()
2355 abs(tzobj->tzi.utc_offset / 60), in date_object_get_properties_timezone()
2356 abs((tzobj->tzi.utc_offset % 60))); in date_object_get_properties_timezone()
2362 ZVAL_STRING(zv, tzobj->tzi.z.abbr, 1); in date_object_get_properties_timezone()
2513 free(intern->tzi.z.abbr); in date_object_free_storage_timezone()
2570 timelib_tzinfo *tzi = NULL; in php_date_initialize() local
2606 tzi = tzobj->tzi.tz; in php_date_initialize()
2609 new_offset = tzobj->tzi.utc_offset; in php_date_initialize()
2612 new_offset = tzobj->tzi.z.utc_offset; in php_date_initialize()
2613 new_dst = tzobj->tzi.z.dst; in php_date_initialize()
2614 new_abbr = strdup(tzobj->tzi.z.abbr); in php_date_initialize()
2619 tzi = dateobj->time->tz_info; in php_date_initialize()
2621 tzi = get_timezone_info(TSRMLS_C); in php_date_initialize()
2628 now->tz_info = tzi; in php_date_initialize()
2642 timelib_update_ts(dateobj->time, tzi); in php_date_initialize()
2814 timelib_tzinfo *tzi; in php_date_initialize_from_hash() local
2835 tzi = php_date_parse_tzfile(Z_STRVAL_PP(z_timezone), DATE_TIMEZONEDB TSRMLS_CC); in php_date_initialize_from_hash()
2837 if (tzi == NULL) { in php_date_initialize_from_hash()
2844 tzobj->tzi.tz = tzi; in php_date_initialize_from_hash()
3305 tzobj->tzi.tz = t->tz_info; in set_timezone_from_timelib_time()
3308 tzobj->tzi.utc_offset = t->z; in set_timezone_from_timelib_time()
3311 tzobj->tzi.z.utc_offset = t->z; in set_timezone_from_timelib_time()
3312 tzobj->tzi.z.dst = t->dst; in set_timezone_from_timelib_time()
3313 tzobj->tzi.z.abbr = strdup(t->tz_abbr); in set_timezone_from_timelib_time()
3354 timelib_set_timezone_from_offset(dateobj->time, tzobj->tzi.utc_offset); in php_date_timezone_set()
3357 timelib_set_timezone_from_abbr(dateobj->time, tzobj->tzi.z); in php_date_timezone_set()
3360 timelib_set_timezone(dateobj->time, tzobj->tzi.tz); in php_date_timezone_set()
3822 RETURN_STRING(tzobj->tzi.tz->name, 1); in PHP_FUNCTION()
3826 timelib_sll utc_offset = tzobj->tzi.utc_offset; in PHP_FUNCTION()
3837 RETURN_STRING(tzobj->tzi.z.abbr, 1); in PHP_FUNCTION()
3887 offset = timelib_get_time_zone_info(dateobj->time->sse, tzobj->tzi.tz); in PHP_FUNCTION()
3892 RETURN_LONG(tzobj->tzi.utc_offset * -60); in PHP_FUNCTION()
3895 RETURN_LONG((tzobj->tzi.z.utc_offset - (tzobj->tzi.z.dst*60)) * -60); in PHP_FUNCTION()
3925 add_assoc_long(element, "offset", tzobj->tzi.tz->type[0].offset); \ in PHP_FUNCTION()
3926 add_assoc_bool(element, "isdst", tzobj->tzi.tz->type[0].isdst); \ in PHP_FUNCTION()
3927 …add_assoc_string(element, "abbr", &tzobj->tzi.tz->timezone_abbr[tzobj->tzi.tz->type[0].abbr_idx], … in PHP_FUNCTION()
3935 add_assoc_long(element, "offset", tzobj->tzi.tz->type[tzobj->tzi.tz->trans_idx[i]].offset); \ in PHP_FUNCTION()
3936 add_assoc_bool(element, "isdst", tzobj->tzi.tz->type[tzobj->tzi.tz->trans_idx[i]].isdst); \ in PHP_FUNCTION()
3937 …add_assoc_string(element, "abbr", &tzobj->tzi.tz->timezone_abbr[tzobj->tzi.tz->type[tzobj->tzi.tz-… in PHP_FUNCTION()
3940 #define add_last() add(tzobj->tzi.tz->bit32.timecnt - 1, timestamp_begin) in PHP_FUNCTION()
3951 if (tzobj->tzi.tz->bit32.timecnt > 0) { in PHP_FUNCTION()
3953 if (tzobj->tzi.tz->trans[begin] > timestamp_begin) { in PHP_FUNCTION()
3963 } while (begin < tzobj->tzi.tz->bit32.timecnt); in PHP_FUNCTION()
3968 if (tzobj->tzi.tz->bit32.timecnt > 0) { in PHP_FUNCTION()
3974 for (i = begin; i < tzobj->tzi.tz->bit32.timecnt; ++i) { in PHP_FUNCTION()
3975 if (tzobj->tzi.tz->trans[i] < timestamp_end) { in PHP_FUNCTION()
3976 add(i, tzobj->tzi.tz->trans[i]); in PHP_FUNCTION()
4001 add_assoc_string(return_value, "country_code", tzobj->tzi.tz->location.country_code, 1); in PHP_FUNCTION()
4002 add_assoc_double(return_value, "latitude", tzobj->tzi.tz->location.latitude); in PHP_FUNCTION()
4003 add_assoc_double(return_value, "longitude", tzobj->tzi.tz->location.longitude); in PHP_FUNCTION()
4004 add_assoc_string(return_value, "comments", tzobj->tzi.tz->location.comments, 1); in PHP_FUNCTION()
4731 timelib_tzinfo *tzi; in php_do_date_sunrise_sunset() local
4770 tzi = get_timezone_info(TSRMLS_C); in php_do_date_sunrise_sunset()
4771 t->tz_info = tzi; in php_do_date_sunrise_sunset()
4830 timelib_tzinfo *tzi; in PHP_FUNCTION() local
4841 tzi = get_timezone_info(TSRMLS_C); in PHP_FUNCTION()
4842 t->tz_info = tzi; in PHP_FUNCTION()