Help language development. Donate to The Perl Foundation
Astro::Almanac - Provides data on the paths of the Sun, Moon, and planets
Astro::Almanac is a Work in Progress (WIP). Please file an issue if there are any features you want added. Bug reports (issues) are always welcome.
use Astro::Almanac; use DateTime::Location; my $loc = DateTime::Location.new: :$name, :$lat, :$lon, :$timezone; my $a = Astro::Almanac.new; # generate one month of daily information in a single JSON file $a.generate :$loc, :2021year, :1month; # same for the entire year: $a.generate :$loc, :2021year;
Astro::Almanac provides daily observation data on the Sun, Moon, and planets, all output as a JSON file named
Under the covers it uses three fine Perl modules thanks to the excellent Raku module
Inline::Perl5. To install the Perl modules execute:
# cpanm Astro::Montenbruck::RiseSet::RST # cpanm Astro::MoonPhase: # cpanm Astro::Utils
Tom Browder [email protected]
© 2020 Tom Browder
This library is free software; you may redistribute it or modify it under the Artistic License 2.0.