get_sunset() problems
Posted: Thu Oct 25, 2007 1:33 pm
I am trying to use get_sunset function and having the following problems:
1. why when I use time() parameter it shows different result then when I use date('Y-m-d') ? Shouldn't sunset be the same time during the whole day??
2. I took the information for chicago from the reliable chart: $lat = 41.9897; $lng = -87.7014; but it doesn't show me the same result. I mean the minutes part is wrong, so offset has nothing to do with it. For example 2007-10-25 sunset should be 17:55, but I cannot get such time.
3. I tried using different zenith, but doesn't help.
Any ideas?
1. why when I use time() parameter it shows different result then when I use date('Y-m-d') ? Shouldn't sunset be the same time during the whole day??
2. I took the information for chicago from the reliable chart: $lat = 41.9897; $lng = -87.7014; but it doesn't show me the same result. I mean the minutes part is wrong, so offset has nothing to do with it. For example 2007-10-25 sunset should be 17:55, but I cannot get such time.
3. I tried using different zenith, but doesn't help.
Any ideas?