untitled
viviti

TimeDiff  

What is TimeDiff?

TimeDiff is a decision program. The program reads the compare file, The file provided two time value. The program makes sure that DO the time different is bigger than the defined margin or not, bigger means alarm and not bigger means normal. In case of the time different is bigger than the defined margin, parameter of Err-Proc will be submited. The compare resault will be saved in log file. In case of the status is return to normal , parameter of Ret-Proc will be submited.


How to use TimeDiff?     goto top

The standard manner used to invoke is:

Use:TimeDiff compare-file diff_value Err-Proc Ret-Proc [Log-file]

diff_value define the margin, In caser of time different bigger than diff_value, Err-Proc will be submitted. Log-file Log the informations for keep last status. default name is compare-file.log.

Return Value:
0 Normal
-1 Return to Normal
1 First Alarm
2 Continue Alarm
5 Error return

*** Return Value can be checks by ERRORLEVEL parameter for batch IF statement.

Compare_File Format     goto top

Year 1
Month 1
Date 1
Hour 1
Min 1
Year 2
Month 2
Date 2
Hour 2
Min 2





Web Hosting · Blog · Guestbooks · Message Forums · Mailing Lists
Easiest Website Builder ever! · Build your own toolbar · Free Talking Character · Email Marketing
powered by a free webtools company bravenet.com