timediff [ parameter=value ] [ inputfile ... ]
Parameters are: pass_date, start_time, time_units, absolute_diff.
timediff computes the time difference between
two TeraScan datasets.
one TeraScan dataset and a user specified date and time
The time of a dataset is determined from its pass_date and start_time attributes.
The time difference is written to UNIX stdout, so it can be captured in a shell variable as part of a shell script. The difference is rounded to the nearest whole number, based on the time_units parameter.
In the following example, the absolute time difference between a file $FILE and an online pass $LASTPASS is computed:
set DATE = `passinfo pass_number=$LASTPASS item=date`
set TIME = `passinfo pass_number=$LASTPASS item=time`
set DIFF = `timediff time_units=minutes absolute_diff=yes
pass_date=$DATE start_time=$TIME $FILE`
Last Update: $Date: 1999/05/10 20:46:40 $