3 # show local times for each callsign or prefix entered
5 # Copyright (c) 1999 Dirk Koopman G1TLH
10 my ($self, $line) = @_;
11 my @list = split /\s+/, $line;
15 my $t = $main::systime;
17 push @out, $self->msg("time1", cldate($t, 1), ztime($t, 1), ztime($t));
22 my @ans = Prefix::extract($l);
27 my $s = sprintf "%-9s %-20s", $pre, $a->name();
29 # UTC offset is in hours.minutes (too late to change it now) AND
30 # the wrong way round!
31 my $off = $a->utcoff();
32 my $frac = $off - int $off;
33 $off = (int $off) + (($frac*100)/60);
34 my ($sec,$min,$hour) = gmtime($t - 3600*$off);
35 my $buf = sprintf "%02d%02d", $hour, $min;
36 push @out, $self->msg("time2", $s, $buf, sprintf("%+.1f", -$off));