date_sunrise

PHP 5, PHP 7, PHP 8
date_sunrise - Returns time of sunrise for a given day and location
Manual
Code Examples

Example #1 date_sunrise example

Result: Mon Dec 20 2004, sunrise time : 08:54
PHP Version:

Example #2 No sunrise

Result: bool(false)
PHP Version:


Function date_sunrise:

Date and Time Functions

Most used PHP functions