Using date and time configuration options
I have read the PHP manual but did not find a correct explanation regarding the use of the following parameters in the file php.ini
:
Date/Time Configuration Options:
date.default_latitude
date.default_longitude
date.sunrise_zenith
date.sunset_zenith
Maybe someone can explain when the above settings will be used?
+3
source to share
1 answer
date_sunrise () and date_sunset () are two default php functions that are used to determine the sunrise and sunset times on a specific day, and take longitude and latitude values as inputs, see http://php.net/manual/ en / function.date-sunrise.php
Like date_sunrise (time (), SUNFUNCS_RET_STRING, $ lat, $ long, $ zenith, $ offset) you can use the default $ lat and $ long values
+5
source to share