Name
date_sun_info
Synopsis
array date_sun_info(inttimestamp, floatlatitude, floatlongitude)
Returns information as an associative array about the times of sunrise and sunset, and the times twilight begins and ends, at a given latitude and longitude. The resulting array contains the following keys:
| The time sunrise occurs |
| The time sunset occurs |
| The time the sun is at its zenith |
| The time civil twilight begins |
| The time civil twilight ends |
| The time nautical twilight begins |
| The time nautical twilight ends |
| The time astronomical twilight begins |
| The time astronomical twilight ends |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access