3 date_default_timezone_set('UTC');
5 /* calculate the sunrise time for Lisbon, Portugal
12 echo "Basic test for date_sunrise() and date_sunset()\n";
14 // supress date() function strict msgs
15 error_reporting(E_ALL
& ~E_STRICT
);
17 echo date("D M d Y") . ', sunrise time : ' . date_sunrise(time(), SUNFUNCS_RET_STRING
, 38.4, -9, 90, 1) . "\n";
18 echo date("D M d Y") . ', sunset time : ' . date_sunset(time(), SUNFUNCS_RET_STRING
, 38.4, -9, 90, 1) . "\n";