Lines Matching refs:date_sunset
2 Test date_sunset() function : error conditions
5 /* Prototype : mixed date_sunset(mixed time [, int format [, float latitude [, float longitude [, …
11 echo "*** Testing date_sunset() : error conditions ***\n";
22 echo "\n-- Testing date_sunset() function with Zero arguments --\n";
23 var_dump( date_sunset() );
25 //Test date_sunset with one more than the expected number of arguments
26 echo "\n-- Testing date_sunset() function with more than expected no. of arguments --\n";
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, $…
33 *** Testing date_sunset() : error conditions ***
35 -- Testing date_sunset() function with Zero arguments --
37 Warning: date_sunset() expects at least 1 parameter, 0 given in %s on line %d
40 -- Testing date_sunset() function with more than expected no. of arguments --
42 Warning: date_sunset() expects at most 6 parameters, 7 given in %s on line %d
45 Warning: date_sunset() expects at most 6 parameters, 7 given in %s on line %d
48 Warning: date_sunset() expects at most 6 parameters, 7 given in %s on line %d