| Recommend this page to a friend! |
| Author | ||
![]() |
|
Innovation award![]() Nominee: 1x | |||||||||||||||||||
| Classes of Nesa Simon David | > | Sun | > | Download .zip .tar.gz | > | > | > | |||||
|
|||||||||||||||||||||||
| Groups | Applications | |||||||
| Groups | ||
| Algorithms | Numerical and statistical algorithms | View top rated classes | |
| Geography | Locations, mapping and demographics | View top rated classes | |
| Physics | Physics related classes | View top rated classes |
| Innovation Award | ||
![]() July 2004 Number 6 Prize: One downloadable copy of PHPEd |
Knowing the sunrise and sunset time maybe important information for applications that depend on whether it is day or night. The sunset or sunrise time information may useful for something like giving the appropriate salute to an user given the current time of the day, or other more complex situations that depend on knowing whether it is day or night where an user lives. The calculation of the sunrise and sunset is not trivial. It depends on the geographic coordinates of the place in the world being considered, the day of the year and the position criteria that determines exactly when it is considered to start the sunrise or sunset. This class provides a solution that simplifies that problem by making the correct calculations considered all the important factors. Manuel Lemos |
| User ratings | ||
| Ratings | ||||||||
|---|---|---|---|---|---|---|---|---|
| All time: | ||||||||
| Month: | ||||||||
| Applications that use this class | ||
| File | Role | Description |
|---|---|---|
| Doc. | an email correspondence, which may help to understand the sun class better.. :) | |
| Aux. | contains math functions to calculate sin/cos/tan etc of angles given in degrees | |
| Class | sun class definition | |
| Output | sample output of sun_calendar.php | |
| Example | displays sunrise/sunset times of all days in a month |
| Download all files: sun_rise_set.tar.gz sun_rise_set.zip |