date_sunset

It returns time of sunset for a given day and location

Example

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

Output

Wed Apr 25 2012, sunset time : 20:50