|
I have posted a bug for Astro::Sunrise #47049.
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. The problem appears
to be in the iteration because it does not occur when "inter" is set to zero. I have successfully used this module before so the error must come from the modules that Astro::Sunrise calls or this version of perl? Any suggestions? Thank you.
#!/usr/bin/perl -w
#
use Astro::Sunrise;
$y=2012;
$m=03;
$d=19;
$long=-83;
$lati=39;
$Zone=-5;
$DST=1;
$ALT=-0.8333;
$inter=1;
($sunrise, $sunset)=sunrise($y,$m,$d,$long,$lati,$Zone,$DST,$ALT,$inter);
print $sunrise,"\n";
print $sunset,"\n";
I am using a 32-bit machine, Fedora-11, perl-5.10.0-69.fc11.i586, and Astro::Sunrise which was
downloaded from cpan on 17 June 2009. The other modules are also recent (i.e. in Fedora-11 or downloaded from cpan since June 14 2009). |