/PHP-7.4/ext/date/lib/ |
H A D | unixtime2tm.c | 136 timelib_time_offset *gmt_offset; in timelib_update_from_sse() local 140 timelib_time_offset_dtor(gmt_offset); in timelib_update_from_sse() 159 timelib_time_offset *gmt_offset; in timelib_unixtime2local() local 182 tm->dst = gmt_offset->is_dst; in timelib_unixtime2local() 183 tm->z = gmt_offset->offset; in timelib_unixtime2local() 187 timelib_time_offset_dtor(gmt_offset); in timelib_unixtime2local() 230 timelib_time_offset *gmt_offset; in timelib_set_timezone() local 233 t->z = gmt_offset->offset; in timelib_set_timezone() 240 t->dst = gmt_offset->is_dst; in timelib_set_timezone() 245 t->tz_abbr = timelib_strdup(gmt_offset->abbr); in timelib_set_timezone() [all …]
|
H A D | tm2unixtime.c | 476 timelib_time_offset *gmt_offset; in do_adjust_timezone() local 478 gmt_offset = timelib_get_time_zone_info(tz->sse + tmp, tzi); in do_adjust_timezone() 479 tz->z = gmt_offset->offset; in do_adjust_timezone() 481 tz->dst = gmt_offset->is_dst; in do_adjust_timezone() 485 tz->tz_abbr = timelib_strdup(gmt_offset->abbr); in do_adjust_timezone() 486 timelib_time_offset_dtor(gmt_offset); in do_adjust_timezone()
|
H A D | parse_tz.c | 696 timelib_time_offset *gmt_offset; in timelib_get_current_offset() local 705 gmt_offset = timelib_get_time_zone_info(t->sse, t->tz_info); in timelib_get_current_offset() 706 retval = gmt_offset->offset; in timelib_get_current_offset() 707 timelib_time_offset_dtor(gmt_offset); in timelib_get_current_offset()
|
/PHP-7.4/ext/date/tests/ |
H A D | date_sunrise_variation9.phpt | 7 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) 21 $gmt_offset = 1; 25 var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset) ); 26 var_dump( date_sunrise($time, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $zenith, $gmt_offset) ); 27 var_dump( date_sunrise($time, SUNFUNCS_RET_TIMESTAMP, $latitude, $longitude, $zenith, $gmt_offset) … 31 var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset) ); 32 var_dump( date_sunrise($time, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $zenith, $gmt_offset) ); 33 var_dump( date_sunrise($time, SUNFUNCS_RET_TIMESTAMP, $latitude, $longitude, $zenith, $gmt_offset) …
|
H A D | date_sunset_variation9.phpt | 7 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) 21 $gmt_offset = 1; 25 var_dump( date_sunset($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset) ); 26 var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $zenith, $gmt_offset) ); 27 var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, $latitude, $longitude, $zenith, $gmt_offset) ); 31 var_dump( date_sunset($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset) ); 32 var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $zenith, $gmt_offset) ); 33 var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, $latitude, $longitude, $zenith, $gmt_offset) );
|
H A D | date_sunrise_variation7.phpt | 5 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]])
|
H A D | date_sunrise_variation8.phpt | 5 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]])
|
H A D | date_sunset_variation7.phpt | 5 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]])
|
H A D | date_sunset_variation8.phpt | 5 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]])
|
/PHP-7.4/ext/date/ |
H A D | php_date.c | 159 ZEND_ARG_INFO(0, gmt_offset) 168 ZEND_ARG_INFO(0, gmt_offset) 5011 double latitude = 0.0, longitude = 0.0, zenith = 0.0, gmt_offset = 0, altitude; in php_do_date_sunrise_sunset() local 5027 Z_PARAM_DOUBLE(gmt_offset) in php_do_date_sunrise_sunset() 5067 gmt_offset = timelib_get_current_offset(t) / 3600; in php_do_date_sunrise_sunset() 5081 N = (calc_sunset ? h_set : h_rise) + gmt_offset; in php_do_date_sunrise_sunset()
|