I have read the PHP manual, but couldn't find any proper explanation regarding the usage of the following options in php.ini file:
Date/Time Configuration Options:
date.default_latitude
date.default_longitude
date.sunrise_zenith
date.sunset_zenith
Perhaps anyone can explain when would the settings above be used?
date_sunrise() and date_sunset() are two php default function which are used to find out the sunrise and sunset time for a particular day, and it takes as input params the longitude and latitude values, please refer to http://php.net/manual/en/function.date-sunrise.php
Like for example date_sunrise(time(), SUNFUNCS_RET_STRING, $lat, $long, $zenith, $offset) you can use the default $lat and $long values
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With