/PHP-7.2/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 | 480 timelib_time_offset *gmt_offset; in do_adjust_timezone() local 482 gmt_offset = timelib_get_time_zone_info(tz->sse + tmp, tzi); in do_adjust_timezone() 483 tz->z = gmt_offset->offset; in do_adjust_timezone() 485 tz->dst = gmt_offset->is_dst; in do_adjust_timezone() 489 tz->tz_abbr = timelib_strdup(gmt_offset->abbr); in do_adjust_timezone() 490 timelib_time_offset_dtor(gmt_offset); in do_adjust_timezone()
|
H A D | parse_tz.c | 661 timelib_time_offset *gmt_offset; in timelib_get_current_offset() local 670 gmt_offset = timelib_get_time_zone_info(t->sse, t->tz_info); in timelib_get_current_offset() 671 retval = gmt_offset->offset; in timelib_get_current_offset() 672 timelib_time_offset_dtor(gmt_offset); in timelib_get_current_offset()
|
/PHP-7.2/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_sunset_error.phpt | 5 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) 18 $gmt_offset = 1; 27 var_dump( date_sunset($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset, $ext… 28 var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $zenith, $gmt_offset, $ext… 29 var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, $latitude, $longitude, $zenith, $gmt_offset, $…
|
H A D | date_sunrise_error.phpt | 5 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) 17 $gmt_offset = 1; 26 var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset, $ex…
|
H A D | date_sunrise_variation3.phpt | 5 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) 17 $gmt_offset = -5.5; 94 … var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, $value, $longitude, $zenith, $gmt_offset) ); 95 … var_dump( date_sunrise($time, SUNFUNCS_RET_DOUBLE, $value, $longitude, $zenith, $gmt_offset) ); 96 … var_dump( date_sunrise($time, SUNFUNCS_RET_TIMESTAMP, $value, $longitude, $zenith, $gmt_offset) );
|
H A D | date_sunrise_variation4.phpt | 5 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) 18 $gmt_offset = 0; 95 var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, $latitude, $value, $zenith, $gmt_offset) ); 96 var_dump( date_sunrise($time, SUNFUNCS_RET_DOUBLE, $latitude, $value, $zenith, $gmt_offset) ); 97 … var_dump( date_sunrise($time, SUNFUNCS_RET_TIMESTAMP, $latitude, $value, $zenith, $gmt_offset) );
|
H A D | date_sunrise_variation5.phpt | 5 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) 18 $gmt_offset = 5.5; 95 … var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $value, $gmt_offset) ); 96 … var_dump( date_sunrise($time, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $value, $gmt_offset) ); 97 …ar_dump( date_sunrise($time, SUNFUNCS_RET_TIMESTAMP, $latitude, $longitude, $value, $gmt_offset) );
|
H A D | date_sunset_variation1.phpt | 5 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) 17 $gmt_offset = 1; 100 … var_dump( date_sunset($value, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset) ); 101 … var_dump( date_sunset($value, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $zenith, $gmt_offset) ); 102 …r_dump( date_sunset($value, SUNFUNCS_RET_TIMESTAMP, $latitude, $longitude, $zenith, $gmt_offset) );
|
H A D | date_sunset_variation3.phpt | 5 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) 18 $gmt_offset = 5.5; 95 var_dump( date_sunset($time, SUNFUNCS_RET_STRING, $value, $longitude, $zenith, $gmt_offset) ); 96 var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, $value, $longitude, $zenith, $gmt_offset) ); 97 … var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, $value, $longitude, $zenith, $gmt_offset) );
|
H A D | date_sunset_variation4.phpt | 5 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) 18 $gmt_offset = 5.5; 95 var_dump( date_sunset($time, SUNFUNCS_RET_STRING, $latitude, $value, $zenith, $gmt_offset) ); 96 var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, $latitude, $value, $zenith, $gmt_offset) ); 97 … var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, $latitude, $value, $zenith, $gmt_offset) );
|
H A D | date_sunset_variation5.phpt | 5 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) 18 $gmt_offset = 5.5; 95 … var_dump( date_sunset($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $value, $gmt_offset) ); 96 … var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $value, $gmt_offset) ); 97 …var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, $latitude, $longitude, $value, $gmt_offset) );
|
H A D | date_sunrise_variation1.phpt | 5 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) 16 $gmt_offset = 1; 100 …var_dump( date_sunrise($value, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset) ); 101 …var_dump( date_sunrise($value, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $zenith, $gmt_offset) ); 102 …_dump( date_sunrise($value, SUNFUNCS_RET_TIMESTAMP, $latitude, $longitude, $zenith, $gmt_offset) );
|
H A D | date_sunrise_variation2.phpt | 7 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) 21 $gmt_offset = 1; 99 var_dump( date_sunrise($time, $value, $latitude, $longitude, $zenith, $gmt_offset) );
|
H A D | date_sunset_variation2.phpt | 7 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) 21 $gmt_offset = 5.5; 99 var_dump( date_sunset($time, $value, $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]]]]])
|
H A D | date_sunrise_variation6.phpt | 2 …date_sunrise() function : usage variation - Passing unexpected values to sixth argument gmt_offset. 5 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) 90 // loop through each element of the array for gmt_offset
|
H A D | date_sunset_variation6.phpt | 2 … date_sunset() function : usage variation - Passing unexpected values to sixth argument gmt_offset. 5 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) 91 // loop through each element of the array for gmt_offset
|
/PHP-7.2/ext/date/ |
H A D | php_date.c | 161 ZEND_ARG_INFO(0, gmt_offset) 170 ZEND_ARG_INFO(0, gmt_offset) 4939 double latitude = 0.0, longitude = 0.0, zenith = 0.0, gmt_offset = 0, altitude; in php_do_date_sunrise_sunset() local 4955 Z_PARAM_DOUBLE(gmt_offset) in php_do_date_sunrise_sunset() 4995 gmt_offset = timelib_get_current_offset(t) / 3600; in php_do_date_sunrise_sunset() 5009 N = (calc_sunset ? h_set : h_rise) + gmt_offset; in php_do_date_sunrise_sunset()
|