17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

TIMEADD$<br />

Chapter 2 Program Instructions<br />

Field of Application Function returning a new time after a number of seconds have been<br />

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

time.<br />

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

1 2<br />

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

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

from.<br />

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

<br />

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

1s 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 TIME$<br />

format, i.e. 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, e.g. 8 o'clock pm is entered as "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 p"<br />

30 A% = -40<br />

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

RUN<br />

01.30.10 p<br />

yields:<br />

yields:<br />

<strong>Intermec</strong> Fingerprint 7.2 – Reference Manual Ed. 3 230

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

Saved successfully!

Ooh no, something went wrong!