|
Posted by Your Name on 10/06/06 21:50
I'm trying to use date_sunrise() and date_sunset() functions in my php5
code.
I use them as follows:
date_default_timezone_set("America/New_York");
$sr = date_sunrise($i,SUNFUNCS_RET_TIMESTAMP,39.2155,-89.2177);
$ss = date_sunset($i,SUNFUNCS_RET_TIMESTAMP,39.2155,-89.2177);
The zenith is whatever the php default is set to (90.58...).
The problem I am having is that the resulting times given are about 20
minutes later than they should be (according to
http://aa.usno.navy.mil/data/docs/RS_OneDay.html).
What am I doing wrong?
Mark
Navigation:
[Reply to this message]
|