jforget / Astro-Sunrise

Astro-Sunrise: computing the time of sunrise and sunset for a given location on Earth and a given date
https://metacpan.org/pod/Astro::Sunrise
Other
2 stars 3 forks source link

What if there is no sunset/sunrise at all? [rt.cpan.org #2698] #5

Closed jforget closed 3 years ago

jforget commented 3 years ago

Migrated from rt.cpan.org#2698 (status was 'resolved')

Requestors:

From srezic@cpan.org on 2003-05-30 17:13:46 :

Here a test case where Astro::Sunrise returns strange values:

$ perl -MAstro::Sunrise=sun_rise,sun_set -e 'warn sun_rise(13.33,52.5,-15), "\n", sun_set(13.33,52.5,-15), "\n";'
2:-7
24:15

I suspect that there is no astronomical twilight in Berlin now. Probably
it's best to return undef in such cases.

Regards,
    Slaven

From rkhill@cpan.org on 2003-08-14 13:07:51 :

This problem was I reintroduced a bug that I fixed in version0.5
The error was in the conversion to local time. fixed in version 0.85

Ron Hill
jforget commented 3 years ago

Thursday 2003-08-14: issue is closed.