Subject: | What if there is no sunset/sunrise at all? |
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