Reply to sunrise/sunset

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация