Astro:...SolEqu(3pm)
π« NAME π«
Astro::Montenbruck::SolEqu β Solstices and Equinoxes, bestie. The whole module, in one vibe.
β¨ SYNOPSIS β¨
use Astro::Montenbruck::SolEqu qw/:all/;
# find solstices and equinoxes for year 2020
for my $event (@SOLEQU_EVENTS)
{
my $jd = solequ(2020, $event);
# ...
}
okay so literally just import everything with qw/:all/, loop over the events, and hit solequ with a year and an event type. that's the whole thing. slay. π
πΈ DESCRIPTION πΈ
so the times of the equinoxes and solstices are the exact instants when the Sun's apparent longitude is a multiple of 90 degrees. that's it, that's the definition, no cap. π
this module searches for those solstices and equinoxes, and the algorithms are based on "Astronomical Formulae for Calculators" by Jean Meeus, Forth Edition, Willmann-Bell, Inc., 1988. iconic source material fr fr. πβ¨
π EXPORT π
CONSTANTS
EVENTS
$MARCH_EQUINOX$JUNE_SOLSTICE$SEPTEMBER_EQUINOX$DECEMBER_SOLSTICE
ARRAY OF THE EVENTS
@SOLEQU_EVENTSβ the array of EVENTS in proper order. it's giving "pre-sorted for your convenience" energy π«Ά
π¦ SUBROUTINES π¦
solequ
find the Julian Day of a solstice or equinox for a given year, bestie.
use Astro::Montenbruck::SolEqu qw/:all/;
my $jd = Astro::Montenbruck::Ephemeris::Sun->solequ($year, $k);
the result is accurate within 5 minutes of Universal Time. yes, minutes β not seconds, don't come for me π
Arguments
- number of a year (negative for B.C., astronomical)
- type of event, defined by the constants (see Events)
Result
in scalar context it returns Standard Julian Day. in list context you get an array of:
- Standard Julian Day and Sun's longitude, in arc-degrees.
- Sun's longitude, arc-degrees.
so like β scalar context, one number. list context, the whole little bundle. pick your fighter π
π AUTHOR π
Sergey Krushinsky, <krushi at cpan.org> β absolute legend, we stan. π«Άβ¨
π COPYRIGHT AND LICENSE π
Copyright (C) 2009-2022 by Sergey Krushinsky
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's the page! brought to you by perl v5.42.2, dated 2026-02-15, filed under User Contributed Perl Documentation β mwah, go compute some equinoxes bestie ππ·π«
π¦ where this page comes from
- alpine 3.24: perl-astro-montenbruck-doc 1.26-r1 Β· Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms