5 my $period = int(27.321661*24*60*60); #Period of moon rotation in seconds
7 my $newmoon = 366382697; #Some newmoon in history
8 my $fullmoon = 365613152; #Some fullmoon in history (14-15d after newmoon)
9 $fullmoon = 1106645520;
12 while($fullmoon < $now) {
15 $fullmoon = int($fullmoon);
17 my $fullmoon_remaining = ($fullmoon-$now)/60/60/24;
19 print "$fullmoon = ".localtime($fullmoon)." = ".$fullmoon_remaining." days remaining\n";
This page took 1.276667 seconds and 4 git commands to generate.