Difference between revisions of "F$DELTA TIME()"

From VSI OpenVMS Wiki
Jump to: navigation, search
(Created page with "'''F$DELTA_TIME()''' is a lexical function that returns the time difference between a given start and end time (specified as Absolute time format|absol...")
 
 
Line 26: Line 26:
 
0 10:24:18.92)
 
0 10:24:18.92)
 
  </nowiki>
 
  </nowiki>
 +
 +
[[Category: Lexical Functions]]

Latest revision as of 05:45, 15 January 2019

F$DELTA_TIME() is a lexical function that returns the time difference between a given start and end time (specified as absolute values. The end time must be the same as or later than the start time.

Format

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

Examples

Displaying a difference between a start and end time (for example, to determine how long it took a command procedure to run):

$ 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

Displaying the delta between the start and end time in DCL and ASCII formats:

(WRITE SYS$OUTPUT F$DELTA_TIME ("BOOT", "LOGIN")
0 10:24:18.92
$ WRITE SYS$OUTPUT F$DELTA_TIME ("BOOT", "LOGIN", "DCL")
0-10:24:18.92
$ WRITE SYS$OUTPUT F$DELTA_TIME ("BOOT", "LOGIN", "ASCTIM")
0 10:24:18.92)