#37743 [Opn->WFx]: results not as expected for date_sunrise

From: Date: Thu, 08 Jun 2006 13:51:57 +0000
Subject: #37743 [Opn->WFx]: results not as expected for date_sunrise
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-98183@lists.php.net to get a copy of this message
ID: 37743 Updated by: derick@php.net 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

« previous php.bugs (#98183) next »