tryphp_func_date_sun_info.php:
Date: 1st January, 2013"; $sun_info=date_sun_info(strtotime("2013-01-01"),31.7667,35.2333); foreach ($sun_info as $key=>$val) { echo "$key: " . date("H:i:s",$val) . "
"; } echo "
Date: 1st June, 2013
"; $sun_info=date_sun_info(strtotime("2013-06-01"),31.7667,35.2333); foreach ($sun_info as $key=>$val) { echo "$key: " . date("H:i:s",$val) . "
"; } ?>
Date: 1st January, 2013
sunrise: 04:39:09
sunset: 14:46:42
transit: 09:42:55
civil_twilight_begin: 04:12:26
civil_twilight_end: 15:13:24
nautical_twilight_begin: 03:42:06
nautical_twilight_end: 15:43:45
astronomical_twilight_begin: 03:12:25
astronomical_twilight_end: 16:13:26
Date: 1st June, 2013
sunrise: 02:34:05
sunset: 16:39:53
transit: 09:36:59
civil_twilight_begin: 02:06:24
civil_twilight_end: 17:07:34
nautical_twilight_begin: 01:32:38
nautical_twilight_end: 17:41:20
astronomical_twilight_begin: 00:56:24
astronomical_twilight_end: 18:17:34