import random crap zend files
[hiphop-php.git] / hphp / test / zend / good / ext-date / date_sunrise_and_sunset_basic.php
blob661be3ade6093318bfea3a88e3f6e5763e21f437
1 <?php
3 date_default_timezone_set('UTC');
5 /* calculate the sunrise time for Lisbon, Portugal
6 Latitude: 38.4 North
7 Longitude: 9 West
8 Zenith ~= 90
9 offset: +1 GMT
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";
21 ===Done===