ID:               37743
 User updated by:  webdev at etzchaimkgh dot org
 Reported By:      webdev at etzchaimkgh dot org
 Status:           Wont fix
 Bug Type:         Date/time related
 Operating System: Linux
 PHP Version:      5.1.4
 New Comment:

I am sorry to hear that you would take such an odd position - an
algorithm that comes up with different results than the U.S.
government. The government does not take into account factors such as
altitude an atmosphere when calculating. The computations and results
should match. 2 minutes is HUGE difference - 2 seconds would be more
like something one might be willing to ignore. You should at least
document your "expected" difference in the manual. Thanks.


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

[2006-06-08 13:51:57] [EMAIL PROTECTED]

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.

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

[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