Calculate the difference, in seconds, between two date and time stamps.
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.
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
Vars.ncp
#ELAPSETIME
- a positive number
representing the difference in seconds.
PAUSE
,
SLEEP
,
WAIT
,
WAITFOR
,
WAITM
,
WAITUNTIL
Procedure File: | Yes |
Command Line: | No |
Key: | No |
API: | No |