date_sunrise

It returns time of sunrise for a given day and location
Example

<?php
echo date(“D M d Y”). ‘, sunrise time : ‘ .date_sunrise(time(), SUNFUNCS_RET_STRING, 18.4, -19, 80, 2);
?>

Output

Tue Apr 24 2012, sunrise time : 09:38

Share