1--TEST--
2Test basic date_sun_info()
3--CREDITS--
4edgarsandi - <edgar.r.sandi@gmail.com>
5--FILE--
6<?php
7date_default_timezone_set('America/Sao_Paulo');
8$sun_info = date_sun_info(strtotime("2015-01-12 00:00:00 UTC"), 89.00, 1.00);
9foreach ($sun_info as $key => $elem ) {
10    echo "$key: " . date("H:i:s", $elem) . "\n";
11}
12
13echo "\n";
14
15$sun_info = date_sun_info(strtotime("2015-09-12 00:00:00 UTC"), 89.00, 1.00);
16foreach ($sun_info as $key => $elem ) {
17    echo "$key: " . date("H:i:s", $elem) . "\n";
18}
19
20echo "Done\n";
21?>
22--EXPECT--
23sunrise: 21:00:00
24sunset: 21:00:00
25transit: 10:03:48
26civil_twilight_begin: 21:00:00
27civil_twilight_end: 21:00:00
28nautical_twilight_begin: 21:00:00
29nautical_twilight_end: 21:00:00
30astronomical_twilight_begin: 21:00:00
31astronomical_twilight_end: 21:00:00
32
33sunrise: 21:00:01
34sunset: 21:00:01
35transit: 08:52:44
36civil_twilight_begin: 21:00:01
37civil_twilight_end: 21:00:01
38nautical_twilight_begin: 21:00:01
39nautical_twilight_end: 21:00:01
40astronomical_twilight_begin: 21:00:01
41astronomical_twilight_end: 21:00:01
42Done
43