Lines Matching refs:offset

1124 	timelib_time_offset *offset = NULL;  in date_format()  local
1135 offset = timelib_time_offset_ctor(); in date_format()
1136 offset->offset = (t->z + (t->dst * 3600)); in date_format()
1137 offset->leap_secs = 0; in date_format()
1138 offset->is_dst = t->dst; in date_format()
1139 offset->abbr = timelib_strdup(t->tz_abbr); in date_format()
1141 offset = timelib_time_offset_ctor(); in date_format()
1142 offset->offset = (t->z); in date_format()
1143 offset->leap_secs = 0; in date_format()
1144 offset->is_dst = 0; in date_format()
1145 offset->abbr = timelib_malloc(9); /* GMT±xxxx\0 */ in date_format()
1146 snprintf(offset->abbr, 9, "GMT%c%02d%02d", in date_format()
1147 (offset->offset < 0) ? '-' : '+', in date_format()
1148 abs(offset->offset / 3600), in date_format()
1149 abs((offset->offset % 3600) / 60)); in date_format()
1151 offset = timelib_get_time_zone_info(t->sse, t->tz_info); in date_format()
1211 case 'I': length = slprintf(buffer, sizeof(buffer), "%d", localtime ? offset->is_dst : 0); break; in date_format()
1214 localtime ? ((offset->offset < 0) ? '-' : '+') : '+', in date_format()
1215 localtime ? abs(offset->offset / 3600) : 0, in date_format()
1217 localtime ? abs((offset->offset % 3600) / 60) : 0 in date_format()
1220 …case 'T': length = slprintf(buffer, sizeof(buffer), "%s", localtime ? offset->abbr : "GMT"); break; in date_format()
1229 length = slprintf(buffer, sizeof(buffer), "%s", offset->abbr); in date_format()
1233 ((offset->offset < 0) ? '-' : '+'), in date_format()
1234 abs(offset->offset / 3600), in date_format()
1235 abs((offset->offset % 3600) / 60) in date_format()
1241 case 'Z': length = slprintf(buffer, sizeof(buffer), "%d", localtime ? offset->offset : 0); break; in date_format()
1247 localtime ? ((offset->offset < 0) ? '-' : '+') : '+', in date_format()
1248 localtime ? abs(offset->offset / 3600) : 0, in date_format()
1249 localtime ? abs((offset->offset % 3600) / 60) : 0 in date_format()
1256 localtime ? ((offset->offset < 0) ? '-' : '+') : '+', in date_format()
1257 localtime ? abs(offset->offset / 3600) : 0, in date_format()
1258 localtime ? abs((offset->offset % 3600) / 60) : 0 in date_format()
1273 timelib_time_offset_dtor(offset); in date_format()
1330 timelib_time_offset *offset = NULL; in php_idate() local
1347 offset = timelib_time_offset_ctor(); in php_idate()
1348 offset->offset = (t->z + (t->dst * 3600)); in php_idate()
1349 offset->leap_secs = 0; in php_idate()
1350 offset->is_dst = t->dst; in php_idate()
1351 offset->abbr = timelib_strdup(t->tz_abbr); in php_idate()
1353 offset = timelib_time_offset_ctor(); in php_idate()
1354 offset->offset = (t->z + (t->dst * 3600)); in php_idate()
1355 offset->leap_secs = 0; in php_idate()
1356 offset->is_dst = t->dst; in php_idate()
1357 offset->abbr = timelib_malloc(9); /* GMT±xxxx\0 */ in php_idate()
1358 snprintf(offset->abbr, 9, "GMT%c%02d%02d", in php_idate()
1359 (offset->offset < 0) ? '-' : '+', in php_idate()
1360 abs(offset->offset / 3600), in php_idate()
1361 abs((offset->offset % 3600) / 60)); in php_idate()
1363 offset = timelib_get_time_zone_info(t->sse, t->tz_info); in php_idate()
1405 case 'I': retval = (int) (!localtime ? offset->is_dst : 0); break; in php_idate()
1406 case 'Z': retval = (int) (!localtime ? offset->offset : 0); break; in php_idate()
1412 timelib_time_offset_dtor(offset); in php_idate()
1673 timelib_time_offset *offset = NULL; in php_strftime() local
1715 offset = timelib_get_time_zone_info(timestamp, tzi); in php_strftime()
1717 ta.tm_isdst = offset->is_dst; in php_strftime()
1719 ta.tm_gmtoff = offset->offset; in php_strftime()
1722 ta.tm_zone = offset->abbr; in php_strftime()
1747 timelib_time_offset_dtor(offset); in php_strftime()
2139 date_object_handlers_date.offset = XtOffsetOf(php_date_obj, std); in date_register_classes()
2161 date_object_handlers_timezone.offset = XtOffsetOf(php_timezone_obj, std); in date_register_classes()
2191 date_object_handlers_interval.offset = XtOffsetOf(php_interval_obj, std); in date_register_classes()
2208 date_object_handlers_period.offset = XtOffsetOf(php_period_obj, std); in date_register_classes()
3575 timelib_time_offset *offset; in PHP_FUNCTION() local
3585 offset = timelib_get_time_zone_info(dateobj->time->sse, dateobj->time->tz_info); in PHP_FUNCTION()
3586 RETVAL_LONG(offset->offset); in PHP_FUNCTION()
3587 timelib_time_offset_dtor(offset); in PHP_FUNCTION()
4044 timelib_time_offset *offset; in PHP_FUNCTION() local
4056 offset = timelib_get_time_zone_info(dateobj->time->sse, tzobj->tzi.tz); in PHP_FUNCTION()
4057 RETVAL_LONG(offset->offset); in PHP_FUNCTION()
4058 timelib_time_offset_dtor(offset); in PHP_FUNCTION()
4093 add_assoc_long(&element, "offset", tzobj->tzi.tz->type[0].offset); \ in PHP_FUNCTION()
4102 add_assoc_long(&element, "offset", tzobj->tzi.tz->type[tzobj->tzi.tz->trans_idx[i]].offset); \ in PHP_FUNCTION()