Sunset and sunrise time

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

  1. divinequran

    divinequran New Member

    Joined:
    Oct 9, 2008
    Messages:
    62
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Home Page:
    http://divinequran.com/
    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

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice