DateTime::Event::LunarCompute Lunar Events | |
Download |
DateTime::Event::Lunar Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Daisuke Maki
- Publisher web site:
- http://search.cpan.org/~dmaki/
DateTime::Event::Lunar Tags
DateTime::Event::Lunar Description
Compute Lunar Events DateTime::Event::Lunar is a Perl module that calculates the time and date of certain recurring lunar events, including new moons and specific lunar phases.Calculations for this module are based on "Calendrical Calculations".SYNOPSIS use DateTime::Event::Lunar; my $new_moon = DateTime::Event::Lunar->new_moon(); my $dt0 = DateTime->new(...); my $next_new_moon = $new_moon->next($dt0); my $prev_new_moon = $new_moon->previous($dt0); my $dt1 = DateTime->new(...); my $dt2 = DateTime->new(...); my $span = DateTime::Span->new(start => $dt1, end => $dt2); my $set = $new_moon->intersection($span); my $iter = $set->iterator(); while (my $dt = $iter->next) { print $dt->datetime, " "; } my $lunar_phase = DateTime::Event::Lunar->lunar_phase(phase => $phase); # same as new_moon, but returns DateTime objects # when the lunar phase is at $phase degress. # if you just want to calculate a single new moon event my $dt = DateTime::Event::Lunar->new_moon_after(datetime => $dt0); my $dt = DateTime::Event::Lunar->new_moon_before(datetime => $dt0); # if you just want to calculate a single lunar phase time my $dt = DateTime::Event::Lunar->lunar_phase_after( datetime => $dt0, phase => $degrees); my $dt = DateTime::Event::Lunar->lunar_phase_before( datetime => $dt0, phase => $degrees); Requirements: · Perl
DateTime::Event::Lunar Related Software