Subject: | Iteration bug |
Date: | Wed, 17 Jun 2009 09:42:52 -0400 |
To: | bug-Astro-Sunrise [...] rt.cpan.org |
From: | John N Rayner <jrayner [...] columbus.rr.com> |
Astro::Sunrise gives me an error of "Sun never sets!!" each year for
leap years, e.g. March 19 2012, but not for other dates. Location does
not appear to affect result. Is the problem in iteration? Any
suggestions? Thank you.
#!/usr/bin/perl -w
#
use Astro::Sunrise;
$y=2012;
$m=03;
$d=19;
$long=-86;
$lati=37
$Zone=-5;
$DST=1;
$ALT=-0.8333;
($sunrise, $sunset)=sunrise($y,$m,$d,$long,$lati,$Zone,$DST,$ALT,1);
print $sunrise,"\n";
print $sunset,"\n";
I am using Fedora-11, perl-5.10.0-69.fc11.i586,Astro::Sunrise was
downloaded from cpan on 17 June 2009.
PS I did not use Bitcard because "This Connection is Untrusted"!
--
Please reply to: rayner.2@osu.edu
John N Rayner, Geography/Atmospheric Sciences, Ohio State Univ.
1035 Derby Hall, 154 N. Oval Mall, Columbus, OH 43210-1361, USA