Index PHPmyEasyWeather PHPmyEasyWeather Homepage

Home
Demo
FAQ
Download
> Documentation
Contact
      

getMoon

getMoon -- return actual moon phase

Description

int getMoon ();

getMoon returns the current moon phase in parts of 1/16, where 0 = full moon, 4 = half moon waning, 8 = new moon, 12 = half moon increasing... possible values are 0 to 15. Returned values are according to the moon grafics in the weatherpics/ directory e.g. "moon_5.jpg".

The returned value is almost exact, based on getFullMoon which returns values with a deviation of about one ore two minutes!

      

Previous Up Next