Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Your Name
October 6, 2006, 9:50 pm
rate this thread
I use them as follows:
$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
What am I doing wrong?
Not sure, I get almost the same figures.
PHP says sunrise/sunset, UTC:
Fri, 06 Oct 2006 11:58:16 +0000
Fri, 06 Oct 2006 23:31:19 +0000
The site above for the same coordinates says (snipped to the relevant bits):
The following information is provided for (longitude W89.2, latitude N39.2):
6 October 2006 Universal Time
It wouldn't accept fractional minutes for the coordinates which probably
accounts for the few seconds difference.
What numbers are you feeding into the site?
Andy Hassall :: firstname.lastname@example.org :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool