1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Sunset and sunrise time

Discussion in 'PHP' started by divinequran, Oct 30, 2010.

  1. divinequran

    divinequran New Member

    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.
     
  2. shabbir

    shabbir Administrator Staff Member

    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.
     

Share This Page