PHP Classes
Icontem

Class: Sun


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend!
      Classes of Nesa Simon David  >  Sun  >  Download  >  Support forum Support forum  >  RSS 1.0 feed RSS 2.0 feed Latest changes  >  Stumble It! Stumble It!  >  Bookmark in del.icio.us Bookmark in del.icio.us  
  Supplied by   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Files Files  
  • Supplied by:

    Picture of Nesa Simon David
    Name: Nesa Simon David <e-mail contact>
    Published packages: 1
    Country: United Arab Emirates United Arab Emirates - PHP jobs in United Arab Emirates
    Home page: ???
    Age: 31
    All time rank: 716
    Week rank: 1078

    Browse this author's classes

  • Innovation Award:

    PHP Programming Innovation award nominee
    July 2004
    Number 6
    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
  • Groups:

    Group folder image Algorithms Numerical and statistical algorithms View top rated classes
    Group folder image Geography Locations, mapping and demographics View top rated classes
    Group folder image Physics Physics related classes View top rated classes
  • Detailed description:

    This class contains methods for calculating the sunrise and sunset for any day, for any zenith (angle at which the sun is said to rise or set) and any place in the world given its latitude and longitude coordinates.

    Please note that the algorithm used for the calculations are not mine. The algorithm was taken from http://williams.best.vwh.net/sunrise_sunset_algorithm.htm (without permission). There are many algorithms for calculating sunrise/sunset, but this was the simplest and explained in an easy to understand manner.
  • User ratings:

    Ratings
    Utility
    Consistency
    Documentation
    Examples
    Tests
    Videos
    Overall
    Rank
    All time:
    Good (94.4%)
    Good (91.7%)
    Sufficient (72.2%)
    Good (88.9%)
    -
    -
    Sufficient (72.5%)
    93
    Month:
    Not yet rated by the users
  • Applications that use this class:

    No application links were specified for this class.
    Add link image If you know an application of this package, send a message to the author to add a link here.
  • Files:

    File Role Description
    Plain text file email1.txt Doc. an email correspondence, which may help to understand the sun class better.. :)
    Plain text file math.php Aux. contains math functions to calculate sin/cos/tan etc of angles given in degrees
    Accessible without login Plain text file sun.php Class sun class definition
    HTML file sun_calendar.html Output sample output of sun_calendar.php
    Plain text file 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
    NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products