/PHP-5.4/ext/date/lib/ |
H A D | unixtime2tm.c | 154 timelib_time_offset *gmt_offset; in timelib_update_from_sse() local 158 timelib_time_offset_dtor(gmt_offset); in timelib_update_from_sse() 177 timelib_time_offset *gmt_offset; in timelib_unixtime2local() local 199 tm->dst = gmt_offset->is_dst; in timelib_unixtime2local() 200 tm->z = gmt_offset->offset; in timelib_unixtime2local() 204 timelib_time_offset_dtor(gmt_offset); in timelib_unixtime2local() 247 timelib_time_offset *gmt_offset; in timelib_set_timezone() local 250 t->z = gmt_offset->offset; in timelib_set_timezone() 257 t->dst = gmt_offset->is_dst; in timelib_set_timezone() 262 t->tz_abbr = strdup(gmt_offset->abbr); in timelib_set_timezone() [all …]
|
H A D | tm2unixtime.c | 411 timelib_time_offset *gmt_offset; in do_adjust_timezone() local 413 gmt_offset = timelib_get_time_zone_info(tz->sse + tmp, tzi); in do_adjust_timezone() 414 tz->z = gmt_offset->offset; in do_adjust_timezone() 416 tz->dst = gmt_offset->is_dst; in do_adjust_timezone() 420 tz->tz_abbr = strdup(gmt_offset->abbr); in do_adjust_timezone() 421 timelib_time_offset_dtor(gmt_offset); in do_adjust_timezone()
|
H A D | parse_tz.c | 440 timelib_time_offset *gmt_offset; in timelib_get_current_offset() local 449 gmt_offset = timelib_get_time_zone_info(t->sse, t->tz_info); in timelib_get_current_offset() 450 retval = gmt_offset->offset; in timelib_get_current_offset() 451 timelib_time_offset_dtor(gmt_offset); in timelib_get_current_offset()
|
/PHP-5.4/ext/date/tests/ |
H A D | date_sunrise_variation9.phpt | 5 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) 19 $gmt_offset = 1; 23 var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset) ); 24 var_dump( date_sunrise($time, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $zenith, $gmt_offset) ); 25 var_dump( date_sunrise($time, SUNFUNCS_RET_TIMESTAMP, $latitude, $longitude, $zenith, $gmt_offset) … 29 var_dump( date_sunrise($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset) ); 30 var_dump( date_sunrise($time, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $zenith, $gmt_offset) ); 31 var_dump( date_sunrise($time, SUNFUNCS_RET_TIMESTAMP, $latitude, $longitude, $zenith, $gmt_offset) …
|
H A D | date_sunset_variation9.phpt | 5 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) 19 $gmt_offset = 1; 23 var_dump( date_sunset($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset) ); 24 var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $zenith, $gmt_offset) ); 25 var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, $latitude, $longitude, $zenith, $gmt_offset) ); 29 var_dump( date_sunset($time, SUNFUNCS_RET_STRING, $latitude, $longitude, $zenith, $gmt_offset) ); 30 var_dump( date_sunset($time, SUNFUNCS_RET_DOUBLE, $latitude, $longitude, $zenith, $gmt_offset) ); 31 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_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_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_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_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_sunrise_variation2.phpt | 5 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) 19 $gmt_offset = 1; 97 var_dump( date_sunrise($time, $value, $latitude, $longitude, $zenith, $gmt_offset) );
|
H A D | date_sunset_variation2.phpt | 5 …d time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) 19 $gmt_offset = 5.5; 97 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-5.4/ext/date/ |
H A D | php_date.c | 140 ZEND_ARG_INFO(0, gmt_offset) 149 ZEND_ARG_INFO(0, gmt_offset) 4113 double latitude = 0.0, longitude = 0.0, zenith = 0.0, gmt_offset = 0, altitude; in php_do_date_sunrise_sunset() local 4122 …TSRMLS_CC, "l|ldddd", &time, &retformat, &latitude, &longitude, &zenith, &gmt_offset) == FAILURE) { in php_do_date_sunrise_sunset() 4163 gmt_offset = timelib_get_current_offset(t) / 3600; in php_do_date_sunrise_sunset() 4177 N = (calc_sunset ? h_set : h_rise) + gmt_offset; in php_do_date_sunrise_sunset()
|