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   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2020-01-19 (5 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 2 This week: 2All time: 9,836 This week: 154Up
Version License PHP version Categories
day-light 1.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.

  Performance   Level  
Name: Dannel <contact>
Classes: 4 packages by
Country: Cuba Cuba
Innovation award
Innovation award
Nominee: 1x

 

  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:2
This week:2
All time:9,836
This week:154Up