2003-02-16 22:28:01 +00:00
|
|
|
--TEST--
|
2003-02-17 05:02:05 +00:00
|
|
|
date_sunrise() and date_sunset() functions
|
|
|
|
--INI--
|
2004-03-30 12:36:44 +00:00
|
|
|
precision=13
|
2003-02-16 22:28:01 +00:00
|
|
|
--FILE--
|
2003-06-28 17:36:46 +00:00
|
|
|
<?php
|
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--
|
2005-02-13 19:23:53 +00:00
|
|
|
1041316748 06:39 6.652455761896
|
|
|
|
1041353169 16:46 16.76937486746
|
|
|
|
1043994763 06:32 6.54537029266
|
|
|
|
1044033183 17:13 17.21752470874
|
|
|
|
1046412416 06:06 6.115652675685
|
|
|
|
1046453799 17:36 17.6108549623
|
|
|
|
1049088501 05:28 5.472742029069
|
|
|
|
1049133501 17:58 17.97255258437
|
|
|
|
1051678444 04:54 4.901229982859
|
|
|
|
1051726729 18:18 18.31368876948
|
|
|
|
1054355667 04:34 4.57442928945
|
|
|
|
1054406363 18:39 18.65640094324
|
|
|
|
1056947818 04:36 4.616120450519
|
|
|
|
1056998911 18:48 18.80887165777
|
|
|
|
1059627264 04:54 4.906882509836
|
|
|
|
1059676557 18:35 18.59928600203
|
|
|
|
1062306852 05:14 5.236889557074
|
|
|
|
1062353017 18:03 18.06054178788
|
|
|
|
1064899952 05:32 5.542366581139
|
|
|
|
1064942681 17:24 17.41150561492
|
|
|
|
1067579698 05:54 5.916208842058
|
|
|
|
1067619001 16:50 16.83369857063
|
|
|
|
1070173246 06:20 6.34622155207
|
|
|
|
1070210100 16:35 16.58358905554
|