X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy.pm;h=fea7d59a6915f800b1b4b77d9039b0c54871f908;hp=705cf794a46b4cf17d040784971a37e09b0c5e0e;hb=764d1d62e0649b39ec2bafa317564fedc3acae02;hpb=acc9fdde66959c0e1faa75d6e8ca2936c18fc9f4 diff --git a/lib/ZOOM/IRSpy.pm b/lib/ZOOM/IRSpy.pm index 705cf79..fea7d59 100644 --- a/lib/ZOOM/IRSpy.pm +++ b/lib/ZOOM/IRSpy.pm @@ -1,4 +1,4 @@ -# $Id: IRSpy.pm,v 1.10 2006-07-21 11:50:17 mike Exp $ +# $Id: IRSpy.pm,v 1.11 2006-07-24 17:00:36 mike Exp $ package ZOOM::IRSpy; @@ -193,7 +193,15 @@ sub _render_record { sub check { my $this = shift(); - return $this->_run_test("Main"); + my $res = $this->_run_test("Main"); + foreach my $target (sort keys %{ $this->{target2record} }) { + my $rec = $this->{target2record}->{$target}; + print STDERR "$target: zeerex='", $rec->{zeerex}, "' = \n", + $rec->{zeerex}->toString(), "\n"; + ### Write record back to database, if modified. + } + return $res; + } @@ -244,6 +252,16 @@ sub record { } +# Utility method, really nothing to do with IRSpy +sub isodate { + my $this = shift(); + my($time) = @_; + + my($sec, $min, $hour, $mday, $mon, $year) = localtime($time); + return sprintf("%04d-%02d-%02dT%02d:%02d:%02d", + $year+1900, $mon+1, $mday, $hour, $min, $sec); +} + =head1 SEE ALSO