+03Jan00=======================================================================
+1. changed the copyright statement in sh/version!
+2. added sh/date with special "be compatible with ak1a" syntax for the output
+of sh/date with no arguments, otherwise the same as sh/time. A special favour
+to G4PDQ...
01Jan00=======================================================================
1. Fixed Julian routines to get rid of the millenium bug! (do as I say, not
as I do!).
--- /dev/null
+#
+# Return system date & time to pacify G4PDQ
+#
+# Copyright (c) 1999 Dirk Koopman G1TLH
+# Copyright (c) 2000 Iain Philipps G0RDI
+#
+# Shamelessly cribbed from time.pl:-
+#
+# $Id$
+#
+
+
+my ($self, $line) = @_;
+my @list = split /\s+/, $line;
+
+my $l;
+my @out;
+my $t = $main::systime;
+
+push @out, $self->msg("time3", cldate($t, 1), ztime($t));
+
+if (@list) {
+ foreach $l (@list) {
+ # prefixes --->
+ my @ans = Prefix::extract($l);
+ next if !@ans;
+ my $pre = shift @ans;
+ my $a;
+ foreach $a (@ans) {
+ my $s = sprintf "%-9s %-20s", $pre, $a->name();
+
+ # UTC offset is in hours.minutes (too late to change it now) AND
+ # the wrong way round!
+ my $off = $a->utcoff();
+ my $frac = $off - int $off;
+ $off = (int $off) + (($frac*100)/60);
+ my ($sec,$min,$hour) = gmtime($t - 3600*$off);
+ my $buf = sprintf "%02d%02d", $hour, $min;
+ push @out, $self->msg("time2", $s, $buf, sprintf("%+.1f", -$off));
+ }
+ }
+}
+
+return (1, @out);
my @out;
push @out, "DX Spider Cluster version $main::version";
-push @out, "Copyright (c) 1998-1999 Dirk Koopman G1TLH";
+push @out, "Copyright (c) 1998-2000 Dirk Koopman G1TLH";
return (1, @out);
suser4 => 'User field name \'$_[0]\' doesn\'t exist',
time1 => 'Local Time: $_[0] $_[1], UTC $_[2]',
time2 => '$_[0] Local (standard) time: $_[1] ($_[2] Hours)',
+ time3 => '$_[0] $_[1]',
talks => 'Talk flag set on $_[0]',
talku => 'Talk flag unset on $_[0]',
usernf => '*** User record for $_[0] not found ***',
@inqueue = (); # the main input queue, an array of hashes
$systime = 0; # the time now (in seconds)
-$version = "1.38"; # the version no of the software
+$version = "1.39"; # the version no of the software
$starttime = 0; # the starting time of the cluster
$lockfn = "cluster.lock"; # lock file name
@outstanding_connects = (); # list of outstanding connects