Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > alt.comp.lang.php > #103

Re: date_sunset returns time that is off

Newsgroups alt.comp.lang.php
Date 2022-09-22 07:14 -0700
References <7fSdnSQKduJwQF7SnZ2dnUVZ_qqdnZ2d@earthlink.com>
Message-ID <9b2e20e1-da7b-4792-b1ed-1484910614e9n@googlegroups.com> (permalink)
Subject Re: date_sunset returns time that is off
From "He, who travels time to time" <he1983912@aol.com>

Show all headers | View raw


Hey... Want to talk? Call me.... My telephone number >>>>

(+372) 56330687


Michael Joel kirjutas Esmaspäev, 28. mai 2012 kl 23:19:02 UTC+3:
> I am using date_sunset to try to get an accurate sunset time but 
> according to weather websites it is about 5 minutes off. 
> 
> Example, I choose a town in northern Maine - 
> echo date("h:i:s a", date_sunset($Today,SUNFUNCS_RET_TIMESTAMP, 
> 46.07566, -67.50435, 90, -4)); 
> 
> returns 
> 08:06:52 pm 
> 
> This is 4 minutes off of weather websites and my GPS unit. 
> I am using the default "Zenith" since I do not understand it or how to 
> calculate it. 
> 
> I tried it for other places to and it was off. 
> I tried it for other dates and it got worse. 
> 
> Any ideas? 
> 
> -- 
> 
> Michael Joel

Back to alt.comp.lang.php | Previous | Next | Find similar


Thread

Re: date_sunset returns time that is off "He, who travels time to time" <he1983912@aol.com> - 2022-09-22 07:14 -0700

csiph-web