Sunset and sunrise time

divinequran's Avatar, Join Date: Oct 2008

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's Avatar, Join Date: Jul 2004
Go4Expert Founder
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.