|PHP Developers Network
|Page 1 of 1|
|Author:||heritage [ Thu Oct 25, 2007 1:33 pm ]|
|Post subject:||get_sunset() problems|
|Author:||churt [ Thu Oct 25, 2007 2:45 pm ]|
|Post subject:||function or class|
|Author:||heritage [ Thu Oct 25, 2007 4:16 pm ]|
|Author:||churt [ Tue Oct 30, 2007 2:55 pm ]|
Sorry I did not get back sooner. Went on vacation and had no access to play with code.
It gets tricky using a date but just make sure that you preface all date references with strtotime().
This code worked fine for me.
echo date_sunset(strtotime('2007-10-25 10:01'), SUNFUNCS_RET_STRING, 41.98, -87.90,90.83,-5);
When I use 41.9897 and -87.7014 I get 17:54. I could live with that but the ones I used above give me 17:55. I took them from Chicago/O'hare,IL.
I had issues using
When I used
it worked fine.
I then realized that was redundant and shortened it to
Hope this helps.
|Page 1 of 1||All times are UTC - 5 hours|
|Powered by phpBB® Forum Software © phpBB Group