ID:               37743
 Updated by:       [EMAIL PROTECTED]
 Reported By:      webdev at etzchaimkgh dot org
-Status:           Open
+Status:           Wont fix
-Bug Type:         *Calendar problems
+Bug Type:         Date/time related
 Operating System: Linux
 PHP Version:      5.1.4
 New Comment:

There are slight difference in algorithms for calculating those things.
It's extremely hard as you have to factor in *many* different parameters
(including state of the atmosphere). A two minute difference is
therefore expected and not really a bug.


Previous Comments:
------------------------------------------------------------------------

[2006-06-08 13:07:56] webdev at etzchaimkgh dot org

Description:
------------
Results of the date_sunrise function do not match times as reported by
U.S. Naval Observatory 
(http://aa.usno.navy.mil/data/docs/RS_OneDay.html) and others

Reproduce code:
---------------
$ts = mktime(0,0,0,  6 , 7 ,2006); 
echo date_sunrise($ts, SUNFUNCS_RET_STRING, 40.8, -73.8, 90 + (50/60) ,
-4); 




Expected result:
----------------
5:24

Actual result:
--------------
5:22


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37743&edit=1

Reply via email to