Annotation of embedaddon/php/ext/date/tests/date_sun_info_001.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test basic date_sun_info()
3: --FILE--
4: <?php
5: date_default_timezone_set('UTC');
6: $sun_info = date_sun_info(strtotime("2006-12-12"), 31.7667, 35.2333);
7: var_dump($sun_info);
8: echo "Done\n";
9: ?>
10: --EXPECTF--
11: array(9) {
12: ["sunrise"]=>
13: int(1165897782)
14: ["sunset"]=>
15: int(1165934168)
16: ["transit"]=>
17: int(1165915975)
18: ["civil_twilight_begin"]=>
19: int(1165896176)
20: ["civil_twilight_end"]=>
21: int(1165935773)
22: ["nautical_twilight_begin"]=>
23: int(1165894353)
24: ["nautical_twilight_end"]=>
25: int(1165937597)
26: ["astronomical_twilight_begin"]=>
27: int(1165892570)
28: ["astronomical_twilight_end"]=>
29: int(1165939380)
30: }
31: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>