IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 6, 2008, 2:03:10 PM (18 years ago)
Author:
Paul Price
Message:

Adding dtime_script calculation. Updating the database tables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/diff_skycell.pl

    r19638 r19932  
    99print "\n\n";
    1010print "Starting script $0 on $host\n\n";
     11
     12use DateTime;
     13my $mjd_start = DateTime->now->mjd;   # MJD of starting script
    1114
    1215use vars qw( $VERSION );
     
    241244        my $command = "$difftool -adddiffskyfile -diff_id $diff_id -uri $outputName -path_base $outroot";
    242245        $command .= $stats->cmdflags();
     246        $command .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
    243247        $command .= " -hostname $host" if defined $host;
    244248        $command .= " -dbname $dbname" if defined $dbname;
     
    263267    if (defined $diff_id and not $no_update) {
    264268        my $command = "$difftool -adddiffskyfile -diff_id $diff_id -code $exit_code";
     269        $command .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
    265270        $command .= " -hostname $host" if defined $host;
    266271        $command .= " -dbname $dbname" if defined $dbname;
Note: See TracChangeset for help on using the changeset viewer.