Source Code:
(back to article)
<?php $date = strtotime("2023-03-03"); $sunset_time = date_sunset($date, SUNFUNCS_RET_TIMESTAMP, 37.7749, -122.4194, 90.83); echo "The sunset time on March 3, 2023, in San Francisco is ".date("H:i", $sunset_time); ?>
Result:
Report an issue