ELAPSETIME

Description

Calculate the difference, in seconds, between two date and time stamps.

Syntax

ELAPSETIME date time date time

date has the format YYYY/MM/DD. Starting with the year 2000, you must specify the year in the format YYYY. Up to 1999, you can specify the year in the format YY or YYYY.

time has the format HH:MM:SS.

Example

  • If the dynamic variables *DATE and *TIME contain the values 1998/03/21 and 12:00:00, the value 900 is returned in the local variable #ELAPSETIME:

    ELAPSETIME *DATE *TIME 1998/03/21 12:15:00

Procedure File Example

Vars.ncp

Variables Returned

#ELAPSETIME - a positive number representing the difference in seconds.

Related Commands

PAUSE, SLEEP, WAIT, WAITFOR, WAITM, WAITUNTIL

Usage

Procedure File: Yes
Command Line: No
Key: No
API: No