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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter —Program Instructions<br />

TIMEADD$<br />

Purpose Function returning a new time after a number of seconds have been added<br />

to, or subtracted from, the current time or optionally a specified time.<br />

Syntax TIMEADD$([,][,])<br />

is any time given according to the TIME$ format, which a certain<br />

number of seconds should be added to or subtracted from.<br />

is the number of seconds to be added to (or subtracted from) the<br />

current time, or optionally the time specified by .<br />

is an optional flag "F", indicating that the time will be returned<br />

according to the format specified by FORMAT TIME$.<br />

Remarks The original time () should always be entered according to the<br />

TIME$ format (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 number of seconds to be added or subtracted from the original time<br />

should be specified as a positive or negative numeric expression respectively.<br />

If no "F" flag is included in the TIMEADD$ function, the result will be<br />

returned according to the TIME$ format, see above.<br />

If the TIMEADD$ function includes an "F" flag, the result will be returned<br />

in the format specified by FORMAT TIME$.<br />

Examples 10 A%=30<br />

20 B$=TIMEADD$ ("133050",A%)<br />

30 PRINT B$<br />

RUN<br />

133120<br />

10 TIME$="133050"<br />

20 FORMAT TIME$ "hh.mm.ss pp"<br />

30 A% = -40<br />

40 PRINT TIMEADD$(A%,"F")<br />

RUN<br />

01.30.10 pm<br />

yields:<br />

yields:<br />

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

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

Saved successfully!

Ooh no, something went wrong!