From heinrichdederichs@googlemail.com on 2013-02-17 17:14:46
:
To whom it may concern,
os: ubuntu 12.04, kernel 3.2.0-37-generic-pae
module : Astro-Sunrise-0.91.tar.gz<http://search.cpan.org/CPAN/authors/id/R/RK/RKHILL/Astro-Sunrise-0.91.tar.gz>
error:
calculating the time values for 2013 the following result will be seen:
19.Mar 06:36 18:39 06:30 18:33 06:20 18:23
20.Mar 05:14 20:01 04:54 20:08 03:13 21:29
21.Mar 06:28 18:46 06:22 18:40 06:10 18:31
produced by the following code:
#######################################################
#!/usr/bin/perl -w
#Sonnenauf- und Untergang
use strict;
use Astro::Sunrise;
#Eitorf
my $lat = 50 + 46/60;
my $lon = 7 + 27/60;
#Tübingen
my $lat1 =48 + 31/60;
my $lon1 = 9 + 3/60;
#Hojby
my $lat2 =55 + 54/60;
my $lon2 = 11 + 36/60;
my $month = 1;
my $day = 1;
my @name = qw(Jan Feb Mar Apr Mai Jun Jul Aug Sep Oct Nov Dec);#
Monatsname, für print
my @max = (31,28,31,30,31,30,31,31,30,31,30,31); #Tage im Monat
printf("%6u",1);
print "\t Eitorf \t\t Tübingen \t\t Hojby\n";
foreach $month(1..12){
foreach my $k (1..$max[$month-1]){
($Astro::Sunrise::sunrise, $Astro::Sunrise::sunset) =
sunrise(2013,$month,$k,$lon,$lat,1,0); #Eitorf
printf("%2u", $k);
print "." ,$name[$month-1], "\t",$Astro::Sunrise::sunrise,
"\t",$Astro::Sunrise::sunset,"\t";
($Astro::Sunrise::sunrise, $Astro::Sunrise::sunset) =
sunrise(2013,$month,$k,$lon1,$lat1,1,0);#Tübingen
print "\t",$Astro::Sunrise::sunrise,
"\t",$Astro::Sunrise::sunset,"\t";
($Astro::Sunrise::sunrise, $Astro::Sunrise::sunset) =
sunrise(2013,$month,$k,$lon2,$lat2,1,0);#Hojby
print "\t",$Astro::Sunrise::sunrise,
"\t",$Astro::Sunrise::sunset,"\n";}
}
#######################################################################################
Heinrich Dederichs
I can confirm this. For Berlin, the module refuses to determine a sunset at all:
use strict;
use Astro::Sunrise;
my ($sunrise, $sunset) = sunrise(2013, 03, 20, 13.3833, 52.5166, +1, 1, 1);
Result:
Sun never sets!!
at bug-demo.pl line 4.
Trying to contact the author, I got
<rkhill@firstlight.net>: host mail2.firstlight.net[216.86.201.22] said: 554
5.7.1 <rkhill@firstlight.net>: Relay access denied (in reply to RCPT TO
command)
Maybe someone else could try this?
From j2n-forget@orange.fr on 2013-06-17 20:38:08
:
This problem has already been reported 4 years
ago by J Rainer
https://rt.cpan.org/Ticket/Display.html?id=47049
And it is the same problem that three persons
(including me) have reported in DateTime::Event::Sunrise.
See
https://rt.cpan.org/Ticket/Display.html?id=34770
https://rt.cpan.org/Ticket/Display.html?id=55762
https://rt.cpan.org/Ticket/Display.html?id=75927
I have offered a patch (to DT::E::Sunrise, not Astro::Sunrise)
five years ago and it is still not installed.
From j2n-forget@orange.fr on 2013-07-05 05:04:20
:
Migrated from rt.cpan.org#83394 (status was 'resolved')
Requestors:
Attachments:
From heinrichdederichs@googlemail.com on 2013-02-17 17:14:46 :
From http://vwegert.myopenid.com/ on 2013-05-20 07:52:42 :
From http://vwegert.myopenid.com/ on 2013-05-20 08:27:23 :
From j2n-forget@orange.fr on 2013-06-17 20:38:08 :
From j2n-forget@orange.fr on 2013-07-05 05:04:20 :