Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Usage of Date/Time Configuration Options

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?

like image 321
Question Overflow Avatar asked Dec 06 '25 08:12

Question Overflow


1 Answers

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

like image 77
Nishant Avatar answered Dec 07 '25 22:12

Nishant



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!