Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   Sunset and sunrise time (http://www.go4expert.com/forums/sunset-sunrise-time-t23714/)

divinequran 30Oct2010 07:33

Sunset and sunrise time
 
Hi,

How to calculate the sun set and sun rise time and as well as moon set and moon rise time in php. Is there is any special functions to calculate these timing?

I have to calculate it according to the timezone.

shabbir 30Oct2010 11:00

Re: Sunset and sunrise time
 
No. there is nothing in PHP and nor in any other language. You have to get the timing and store them in database. Also it is not based on timezone but it is based on geography. Like in India the Sunset Time in West Bengal is not same as that in Kerala but both have same time zone.


All times are GMT +5.5. The time now is 08:10.