Lines Matching refs:date_sunset

2 Test date_sunset() function : usage variation - Passing high positive and negative float values to …
7 /* Prototype : mixed date_sunset(mixed time [, int format [, float latitude [, float longitude [, …
13 echo "*** Testing date_sunset() : usage variation ***\n";
23 echo "\n-- Testing date_sunset() function by passing float 12.3456789000e10 value to time --\n";
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) );
29 echo "\n-- Testing date_sunset() function by passing float -12.3456789000e10 value to time --\n";
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) );
38 *** Testing date_sunset() : usage variation ***
40 -- Testing date_sunset() function by passing float 12.3456789000e10 value to time --
42 Warning: date_sunset() expects parameter 1 to be int, float given in %s on line %d
45 Warning: date_sunset() expects parameter 1 to be int, float given in %s on line %d
48 Warning: date_sunset() expects parameter 1 to be int, float given in %s on line %d
51 -- Testing date_sunset() function by passing float -12.3456789000e10 value to time --
53 Warning: date_sunset() expects parameter 1 to be int, float given in %s on line %d
56 Warning: date_sunset() expects parameter 1 to be int, float given in %s on line %d
59 Warning: date_sunset() expects parameter 1 to be int, float given in %s on line %d