2003-02-16 22:28:01 +00:00
|
|
|
--TEST--
|
2003-02-17 05:02:05 +00:00
|
|
|
date_sunrise() and date_sunset() functions
|
|
|
|
--INI--
|
|
|
|
precision = 14
|
2003-02-16 22:28:01 +00:00
|
|
|
--FILE--
|
|
|
|
<?
|
2003-02-17 05:51:03 +00:00
|
|
|
|
|
|
|
putenv ("TZ=Asia/Jerusalem");
|
|
|
|
|
2003-02-16 22:28:01 +00:00
|
|
|
for($a=1;$a<=12;$a++){
|
|
|
|
echo date_sunrise(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_TIMESTAMP,31.76670,35.23330,90.83,2)." ";
|
|
|
|
echo date_sunrise(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_STRING,31.76670,35.23330,90.83,2)." ";
|
|
|
|
echo date_sunrise(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_DOUBLE,31.76670,35.23330,90.83,2)."\n";
|
|
|
|
|
|
|
|
echo date_sunset(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_TIMESTAMP,31.76670,35.23330,90.83,2)." ";
|
|
|
|
echo date_sunset(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_STRING,31.76670,35.23330,90.83,2)." ";
|
|
|
|
echo date_sunset(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_DOUBLE,31.76670,35.23330,90.83,2)."\n";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
1041293199 06:39 6.6524557618962
|
|
|
|
1041293806 16:46 16.769374867459
|
|
|
|
1043971592 06:32 6.5453702926602
|
|
|
|
1043972233 17:13 17.217524708736
|
|
|
|
1046390766 06:06 6.1156526756851
|
|
|
|
1046391456 17:36 17.6108549623
|
|
|
|
1049069128 05:28 5.4727420290691
|
|
|
|
1049069878 17:58 17.972552584375
|
|
|
|
1051661094 04:54 4.9012299828593
|
|
|
|
1051661898 18:18 18.313688769483
|
|
|
|
1054339474 04:34 4.5744292894498
|
|
|
|
1054340319 18:39 18.656400943241
|
|
|
|
1056931476 04:36 4.6161204505189
|
|
|
|
1056932328 18:48 18.808871657766
|
|
|
|
1059609894 04:54 4.9068825098365
|
|
|
|
1059610715 18:35 18.599286002028
|
|
|
|
1062288314 05:14 5.2368895570738
|
|
|
|
1062289083 18:03 18.060541787879
|
|
|
|
1064880332 05:32 5.542366581139
|
|
|
|
1064881044 17:24 17.411505614917
|
|
|
|
1067558754 05:54 5.9162088420581
|
|
|
|
1067559410 16:50 16.833698570628
|
|
|
|
1070150780 06:20 6.3462215520697
|
|
|
|
1070151395 16:35 16.583589055537
|