02.10.2012 Views

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

TIMEDIFF<br />

Chapter —Program Instructions<br />

Purpose Function returning the difference between two specified moments of time<br />

in number of seconds.<br />

Syntax TIMEDIFF(,)<br />

is one of two moments of time (time 1).<br />

is the other of the two moments (time 2).<br />

Remarks To get the result as a positive value, the two moments of time, for which<br />

the difference is to be calculated, should be entered with the earlier<br />

moment (time 1) first and the later moment (time 2) last, see the first<br />

example below.<br />

If the later moment (time 2) is entered first, the resulting value will be<br />

negative, see the second example below.<br />

The time should be entered according to the format for the TIME$ variable,<br />

that is in the order HHMMSS, where:<br />

HH = Hour Two digits (00-23)<br />

MM = Minute Two digits (00-59)<br />

SS = Second Two digits (00-59)<br />

Time is entered as a 24-hour cycle, for example 8 o’clock pm is entered as<br />

"200000".<br />

The resulting difference in seconds will be returned.<br />

Examples PRINT TIMEDIFF ("133050","133120")<br />

30<br />

PRINT TIMEDIFF ("133120","133050")<br />

-30<br />

yields:<br />

yields:<br />

<strong>Intermec</strong> Fingerprint <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong> 81

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!