8 #use POSIX qw(strftime localtime);
10 #use I18N::Langinfo qw(langinfo ABDAY_1 YESSTR NOSTR);
12 #I18N::Langinfo->import(qw(langinfo CODESET));
13 #my $codeset = langinfo(CODESET()); # note the ()
16 my $seconds_since_1970 = time();
24 $SunAng ) = phase
($seconds_since_1970);
26 my @info = phase
($seconds_since_1970);
29 my @phases = phasehunt
();
30 print "New Moon = ", scalar(localtime($phases[0])), "\n";
31 print "First quarter = ", scalar(localtime($phases[1])), "\n";
32 print "Full moon = ", scalar(localtime($phases[2])), "\n";
33 print "Last quarter = ", scalar(localtime($phases[3])), "\n";
34 print "New Moon = ", scalar(localtime($phases[4])), "\n";
37 my @name = ("New Moon", "First quarter", "Full moon", "Last quarter");
38 my ($phase, @times) = phaselist
(time(), (time()+60*60*24*365));
41 printf "%-14s= %s\n", $name[$phase], scalar localtime shift @times;
42 #printf "%-14s= %s\n", $name[$phase], scalar shift @times;
43 $phase = ($phase + 1) % 4;
This page took 1.671652 seconds and 4 git commands to generate.