http://www.srrb.noaa.gov/highlights/sunrise/gen.html

These guys hava a fully JS version. Here's the disclaimer:

NOTE: Algorithm used is an approximation.  Times may contain errors of +/- 2
minutes or more. For latitudes greater than 72 degrees N and S, calculations
have not been confirmed by official sunrise/sunset data.

I'm sure I've seen a C/C++ version somewhere as well as a Perl script. Look
around, the perl especially should be easy to port over (or just access
directly).

-----Original Message-----
From: Jim McAtee [mailto:[EMAIL PROTECTED]]
Sent: January 30, 2001 14:45
To: CF-Talk
Subject: Re: Sunrise/Sunset


Got the tag and it seems to work well (one or two small bugs in the tag).
One problem, however, is that in order to specify the times in local time
you must know the timezone (the offset from Universal Time) for the location
you're doing the calculation for.

I need to use the tag for many arbitrary locations around the country.  So,
probably an even greater request:  Anyone know of a means of looking up time
zone information for a given latitude and longitude?  This is a  longshot, I
realize.  I'd also have to know whether the particular location observes
daylight savings time.

Jim


----- Original Message -----
From: "Paul Hastings" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, January 30, 2001 12:11 PM
Subject: Re: Sunrise/Sunset


> > a moon phase tag woulb be neat as well!
>
> well lets start with the sunrise:
>
http://devex.allaire.com/developer/gallery/info.cfm?ID=C7984B5B-84C5-11D4-AA
> A700508B94F380&method=Full
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to