tzobj 2265 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 2268 ext/date/php_date.c tzobj = Z_PHPTIMEZONE_P(object); tzobj 2272 ext/date/php_date.c if (!tzobj->initialized) { tzobj 2276 ext/date/php_date.c ZVAL_LONG(&zv, tzobj->type); tzobj 2279 ext/date/php_date.c switch (tzobj->type) { tzobj 2281 ext/date/php_date.c ZVAL_STRING(&zv, tzobj->tzi.tz->name); tzobj 2287 ext/date/php_date.c tzobj->tzi.utc_offset > 0 ? '-' : '+', tzobj 2288 ext/date/php_date.c abs(tzobj->tzi.utc_offset / 60), tzobj 2289 ext/date/php_date.c abs((tzobj->tzi.utc_offset % 60))); tzobj 2295 ext/date/php_date.c ZVAL_STRING(&zv, tzobj->tzi.z.abbr); tzobj 2517 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 2519 ext/date/php_date.c tzobj = Z_PHPTIMEZONE_P(timezone_object); tzobj 2520 ext/date/php_date.c switch (tzobj->type) { tzobj 2522 ext/date/php_date.c tzi = tzobj->tzi.tz; tzobj 2525 ext/date/php_date.c new_offset = tzobj->tzi.utc_offset; tzobj 2528 ext/date/php_date.c new_offset = tzobj->tzi.z.utc_offset; tzobj 2529 ext/date/php_date.c new_dst = tzobj->tzi.z.dst; tzobj 2530 ext/date/php_date.c new_abbr = timelib_strdup(tzobj->tzi.z.abbr); tzobj 2533 ext/date/php_date.c type = tzobj->type; tzobj 2727 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 2755 ext/date/php_date.c tzobj = Z_PHPTIMEZONE_P(php_date_instantiate(date_ce_timezone, &tmp_obj)); tzobj 2756 ext/date/php_date.c tzobj->type = TIMELIB_ZONETYPE_ID; tzobj 2757 ext/date/php_date.c tzobj->tzi.tz = tzi; tzobj 2758 ext/date/php_date.c tzobj->initialized = 1; tzobj 3212 ext/date/php_date.c static void set_timezone_from_timelib_time(php_timezone_obj *tzobj, timelib_time *t) tzobj 3214 ext/date/php_date.c tzobj->initialized = 1; tzobj 3215 ext/date/php_date.c tzobj->type = t->zone_type; tzobj 3218 ext/date/php_date.c tzobj->tzi.tz = t->tz_info; tzobj 3221 ext/date/php_date.c tzobj->tzi.utc_offset = t->z; tzobj 3224 ext/date/php_date.c tzobj->tzi.z.utc_offset = t->z; tzobj 3225 ext/date/php_date.c tzobj->tzi.z.dst = t->dst; tzobj 3226 ext/date/php_date.c tzobj->tzi.z.abbr = timelib_strdup(t->tz_abbr); tzobj 3239 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 3248 ext/date/php_date.c tzobj = Z_PHPTIMEZONE_P(return_value); tzobj 3249 ext/date/php_date.c set_timezone_from_timelib_time(tzobj, dateobj->time); tzobj 3259 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 3263 ext/date/php_date.c tzobj = Z_PHPTIMEZONE_P(timezone_object); tzobj 3265 ext/date/php_date.c switch (tzobj->type) { tzobj 3267 ext/date/php_date.c timelib_set_timezone_from_offset(dateobj->time, tzobj->tzi.utc_offset); tzobj 3270 ext/date/php_date.c timelib_set_timezone_from_abbr(dateobj->time, tzobj->tzi.z); tzobj 3273 ext/date/php_date.c timelib_set_timezone(dateobj->time, tzobj->tzi.tz); tzobj 3605 ext/date/php_date.c static int timezone_initialize(php_timezone_obj *tzobj, /*const*/ char *tz, size_t tz_len) /* {{{ */ tzobj 3622 ext/date/php_date.c set_timezone_from_timelib_time(tzobj, dummy_t); tzobj 3636 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 3641 ext/date/php_date.c tzobj = Z_PHPTIMEZONE_P(php_date_instantiate(date_ce_timezone, return_value)); tzobj 3642 ext/date/php_date.c if (SUCCESS != timezone_initialize(tzobj, tz, tz_len)) { tzobj 3656 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 3664 ext/date/php_date.c tzobj = Z_PHPTIMEZONE_P(getThis()); tzobj 3665 ext/date/php_date.c timezone_initialize(tzobj, tz, tz_len); tzobj 3670 ext/date/php_date.c static int php_date_timezone_initialize_from_hash(zval **return_value, php_timezone_obj **tzobj, HashTable *myht) /* {{{ */ tzobj 3683 ext/date/php_date.c if (SUCCESS == timezone_initialize(*tzobj, Z_STRVAL_P(z_timezone), Z_STRLEN_P(z_timezone))) { tzobj 3695 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 3706 ext/date/php_date.c tzobj = Z_PHPTIMEZONE_P(return_value); tzobj 3707 ext/date/php_date.c if(php_date_timezone_initialize_from_hash(&return_value, &tzobj, myht) != SUCCESS) { tzobj 3718 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 3721 ext/date/php_date.c tzobj = Z_PHPTIMEZONE_P(object); tzobj 3725 ext/date/php_date.c if(php_date_timezone_initialize_from_hash(&return_value, &tzobj, myht) != SUCCESS) { tzobj 3737 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 3742 ext/date/php_date.c tzobj = Z_PHPTIMEZONE_P(object); tzobj 3743 ext/date/php_date.c DATE_CHECK_INITIALIZED(tzobj->initialized, DateTimeZone); tzobj 3745 ext/date/php_date.c switch (tzobj->type) { tzobj 3747 ext/date/php_date.c RETURN_STRING(tzobj->tzi.tz->name); tzobj 3751 ext/date/php_date.c timelib_sll utc_offset = tzobj->tzi.utc_offset; tzobj 3762 ext/date/php_date.c RETURN_STRING(tzobj->tzi.z.abbr); tzobj 3798 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 3805 ext/date/php_date.c tzobj = Z_PHPTIMEZONE_P(object); tzobj 3806 ext/date/php_date.c DATE_CHECK_INITIALIZED(tzobj->initialized, DateTimeZone); tzobj 3810 ext/date/php_date.c switch (tzobj->type) { tzobj 3812 ext/date/php_date.c offset = timelib_get_time_zone_info(dateobj->time->sse, tzobj->tzi.tz); tzobj 3817 ext/date/php_date.c RETURN_LONG(tzobj->tzi.utc_offset * -60); tzobj 3820 ext/date/php_date.c RETURN_LONG((tzobj->tzi.z.utc_offset - (tzobj->tzi.z.dst*60)) * -60); tzobj 3832 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 3839 ext/date/php_date.c tzobj = Z_PHPTIMEZONE_P(object); tzobj 3840 ext/date/php_date.c DATE_CHECK_INITIALIZED(tzobj->initialized, DateTimeZone); tzobj 3841 ext/date/php_date.c if (tzobj->type != TIMELIB_ZONETYPE_ID) { tzobj 3849 ext/date/php_date.c add_assoc_long(&element, "offset", tzobj->tzi.tz->type[0].offset); \ tzobj 3850 ext/date/php_date.c add_assoc_bool(&element, "isdst", tzobj->tzi.tz->type[0].isdst); \ tzobj 3851 ext/date/php_date.c add_assoc_string(&element, "abbr", &tzobj->tzi.tz->timezone_abbr[tzobj->tzi.tz->type[0].abbr_idx]); \ tzobj 3858 ext/date/php_date.c add_assoc_long(&element, "offset", tzobj->tzi.tz->type[tzobj->tzi.tz->trans_idx[i]].offset); \ tzobj 3859 ext/date/php_date.c add_assoc_bool(&element, "isdst", tzobj->tzi.tz->type[tzobj->tzi.tz->trans_idx[i]].isdst); \ tzobj 3860 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]); \ tzobj 3863 ext/date/php_date.c #define add_last() add(tzobj->tzi.tz->bit32.timecnt - 1, timestamp_begin) tzobj 3874 ext/date/php_date.c if (tzobj->tzi.tz->bit32.timecnt > 0) { tzobj 3876 ext/date/php_date.c if (tzobj->tzi.tz->trans[begin] > timestamp_begin) { tzobj 3886 ext/date/php_date.c } while (begin < tzobj->tzi.tz->bit32.timecnt); tzobj 3891 ext/date/php_date.c if (tzobj->tzi.tz->bit32.timecnt > 0) { tzobj 3897 ext/date/php_date.c for (i = begin; i < tzobj->tzi.tz->bit32.timecnt; ++i) { tzobj 3898 ext/date/php_date.c if (tzobj->tzi.tz->trans[i] < timestamp_end) { tzobj 3899 ext/date/php_date.c add(i, tzobj->tzi.tz->trans[i]); tzobj 3912 ext/date/php_date.c php_timezone_obj *tzobj; tzobj 3917 ext/date/php_date.c tzobj = Z_PHPTIMEZONE_P(object); tzobj 3918 ext/date/php_date.c DATE_CHECK_INITIALIZED(tzobj->initialized, DateTimeZone); tzobj 3919 ext/date/php_date.c if (tzobj->type != TIMELIB_ZONETYPE_ID) { tzobj 3924 ext/date/php_date.c add_assoc_string(return_value, "country_code", tzobj->tzi.tz->location.country_code); tzobj 3925 ext/date/php_date.c add_assoc_double(return_value, "latitude", tzobj->tzi.tz->location.latitude); tzobj 3926 ext/date/php_date.c add_assoc_double(return_value, "longitude", tzobj->tzi.tz->location.longitude); tzobj 3927 ext/date/php_date.c add_assoc_string(return_value, "comments", tzobj->tzi.tz->location.comments);