Zefram schreef:
> Sounds like you're looking for the equinox and solstice dates. I don't
> see any CPAN module providing this, on search.cpan.org.
Take a look at the DateTime::Util::Astro modules. solar_longitude_before
and _after are useful to look for equinoxes and solstices, but you don't
need
David E. Wheeler wrote:
>return $date lt '03-21' ? 'winter'
> : $date lt '06-21' ? 'spring'
Northern hemisphere chauvinism.
Aside from the hemisphere issue, the code is also wrong for tropical
latitudes, where the four-season system doesn't apply. If you're trying
to answer a