Previous Topic

Next Topic

Book Contents

Book Index

%%$TIMEINT

The %%$TIMEINT function calculates the time interval between two given times (specified in any order). The valid format is

%%$TIMEINT time1 time2

time1 and time2 are constants or variables in the format yydddhhmmss.

In this format

The resulting time interval is in format dddddhhmmss

Example 1

DO SET=%%A = %%$TIMEINT 00120070000 00119060000

The result is: 00001010000.

Example 2

DO SET=%%NOW = %%$YEAR.%%$JULDAY.%%$TIME

IF %%$TIMEINT %%NOW %%PAST GT# 30

DO SHOUT

ENDIF

This calculates the time interval between now and an earlier time (%%PAST), and notifies the user through a DO SHOUT statement if the time interval exceeds thirty seconds.

Parent Topic

Functions