Library /sys$common/syshlp/helplib.hlb  —  Lexicals  F$DELTA_TIME, 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
      time.

      This example returns 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)

      This example returns the delta between the boot and login time
      in DCL and ASCII formats.
Close Help