Skip Menu |

This queue is for tickets about the DateTime-Astro-Sunrise CPAN distribution.

Report information
The Basics
Id: 32057
Status: new
Priority: 0/
Queue: DateTime-Astro-Sunrise

People
Owner: Nobody in particular
Requestors: leesaudan [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: bug in DateTime::Astro::Sunrise : "You need to have a longitude"?
Date: Thu, 03 Jan 2008 16:28:14 +0800
To: bug-DateTime-Astro-Sunrise [...] rt.cpan.org
From: LEE Sau Dan <leesaudan [...] gmail.com>
This bug occurs in module DateTime::Astro::Sunrise version 0.01_01 (Mon Mar 17 10:01:50 2003). I tried to use this module to get sunset/sunrise times for the point with 0 longtitude and 0 latitude: #!/usr/bin/perl use DateTime; use DateTime::Astro::Sunrise; my $standpoint = DateTime::Astro::Sunrise->new(0, 0, undef, 0); #end But perl died at line 6, saying: You need to have a longitude at b.pl line 6 even though I have said the longitude should be "0" (instead of 'undef'). $ uname -a Linux somehost 2.6.22.1 #1 SMP PREEMPT Thu Jul 12 18:41:25 HKT 2007 i686 GNU/Linux $ perl -v This is perl, v5.8.8 built for i486-linux-gnu-thread-multi Copyright 1987-2006, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. -- Lee Sau Dan 李守敦 ~{@nJX6X~} Home page: http://www.informatik.uni-freiburg.de/~danlee