|
|
|
@ -1,7 +1,5 @@ |
|
|
|
--TEST-- |
|
|
|
Basic test for date_sunrise and date_sunset based on example in PHP manual |
|
|
|
--INI-- |
|
|
|
date.timezone=UTC |
|
|
|
--FILE-- |
|
|
|
<?php |
|
|
|
|
|
|
|
@ -14,8 +12,8 @@ offset: +1 GMT |
|
|
|
|
|
|
|
echo "Basic test for date_sunrise() and date_sunset()\n"; |
|
|
|
|
|
|
|
// supress date() function warning msgs |
|
|
|
error_reporting(E_ALL & ~E_WARNING); |
|
|
|
// supress date() function strict msgs |
|
|
|
error_reporting(E_ALL & ~E_STRICT); |
|
|
|
|
|
|
|
echo date("D M d Y") . ', sunrise time : ' . date_sunrise(time(), SUNFUNCS_RET_STRING, 38.4, -9, 90, 1) . "\n"; |
|
|
|
echo date("D M d Y") . ', sunset time : ' . date_sunset(time(), SUNFUNCS_RET_STRING, 38.4, -9, 90, 1) . "\n"; |
|
|
|
|