PHP Classes
elePHPant
Icontem

PHP Day Light Calculator: Calculate the day hours for a given location

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2020-01-19 (1 month ago) RSS 2.0 feedNot enough user ratingsTotal: 142 This week: 14All time: 8,874 This week: 21Up
Version License PHP version Categories
day-light 1.0.0Freeware5PHP 5, Time and Date, Geography
Description Author

This class can calculate the day hours for a given location.

It can take the latitude and longitude of a location and the time zone and it can calculate several types of time values. Currently it can return:

- The current time of the day
- The Sunrise and Sunset time
- The duration of the period with Sun light
- The remaining number of Sun light left for the day
- The duration of the period without Sun light
- The remaining number without Sun light left for the day
- Data for an image that can be the Sun or Moon images depending whether it is day or night

In Spanish:

Esta clase calcula las horas de luz y de obscuridad del dia asi como las horas de puesta y salida del sol pasando como parámetro las coordenadas geograficas y el uso horario(timezone). Tambien muestra una imagen con el sol o la luna si es de dia o de noche.

Innovation Award
PHP Programming Innovation award nominee
January 2020
Nominee
Vote
Many activities can only happen during the period of the day when there is light coming from the Sun. An example of that kind of activity can be for instance going to a beach to receive sunlight baths.

This class can calculate the number of hours of sunlight for a given location.

This way, users of a PHP application that uses this class may be aware of the length of the period of the day that they can use to benefit from the Sun Light.

Manuel Lemos
  Performance   Level  
Name: Dannel <contact>
Classes: 6 packages by
Country: Cuba Cuba
Age: 26
All time rank: 355910 in Cuba Cuba
Week rank: 7 Up1 in Cuba Cuba Up
Innovation award
Innovation award
Nominee: 3x

 

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example script
Plain text file php_light_time_calculator.php Class Class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:142
This week:14
All time:8,874
This week:21Up