HP OpenVMS DCL Dictionary


Previous Contents Index

F$DELTA_TIME

Returns the time difference between a given start and end time. The end time must be the same as or later than the start time.

Format

F$DELTA_TIME (start-time,end-time)

Return Value


A character string containing the difference between the start and end times. The returned string has the following fixed format:

dddd hh:mm:ss.cc


Argument

start-time

Absolute time expression of the start time in the following format:

dd-mmm-yyyy hh:mm:ss.cc

end-time

Absolute time expression of the end time in the following format:

dd-mmm-yyyy hh:mm:ss.cc


Example


$ START=F$TIME() 
$ END=F$TIME() 
$ SHOW SYMBOL START  
 START = "15-JUL-2003 16:26:35.77" 
$ SHOW SYMBOL END 
 END = "15-JUL-2003 16:26:41.39" 
$ WRITE SYS$OUTPUT F$DELTA_TIME(START,END) 
 0 00:00:05.62 
 
      

This example uses the F$TIME() lexical function to define a symbol for the start time and end time. It then uses F$DELTA_TIME to display the time difference between the start and end times.


Previous Next Contents Index