3 # show sunrise and sunset times for each callsign or prefix entered
5 # 1999/11/9 Steve Franke K9AN
8 my ($self, $line) = @_;
9 my @list = split /\s+/, $line;
13 my ($lat, $lon); # lats and longs in radians
14 my ($sec, $min, $hr, $day, $month, $yr) = (gmtime($main::systime))[0,1,2,3,4,5];
22 my $user = DXUser->get_current(uc $l);
23 if ($user && $user->lat && $user->long) {
24 push @in, [$user->qth, $user->lat * $d2r, $user->long * -$d2r, uc $l ];
27 my @ans = Prefix::extract($l);
36 push @in, [ $a->name, $lat, $lon, $pre ];
41 if ($self->user->lat && $self->user->long) {
42 push @in, [$self->user->qth, $self->user->lat * $d2r, $self->user->long * -$d2r, $self->call ];
44 push @in, [$main::myqth, $main::mylatitude * $d2r, $main::mylogitude * -$d2r, $main::mycall ];
49 my $string=Sun::riseset($yr,$month,$day,$l->[1],$l->[2]);
50 push @out,sprintf("%-2s %s %s",$l->[3],$l->[0],$string);