1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    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,287
    Likes Received:
    364
    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