PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Dannel   PHP Day Light Calculator   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Day Light Calculator
Calculate the day hours for a given location
Author: By
Last change:
Date: 4 years ago
Size: 527 bytes
 

Contents

Class file image Download
<?php
include 'php_light_time_calculator.php';
$obj=new LightnShade;
$a=$obj->dayLight(22.9666666666667,-82.15,"America/New_York");
?>
<?=
'Current time: '.$a['now']?> <br>
<?='Sunrise today: '.$a['sunrise']?> <br>
<?='Sunset today: '.$a['sunset']?> <br>
<?='Hours of Light: '.$a['lightHours']?> <br>
<?='Remaining Hours of Light : '.$a['lightHoursLeft']?> <br>
<?='Hours of Dark: '.$a['darkHours']?> <br>
<?='Remaining Hours of Dark : '.$a['darkHoursLeft']?> <br>
<?='Star Above our heads: <br>'.$a['Star']?> <br>