Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7262
Chapter 2 Program Instructions
TIMEADD$
Field of Application
Function returning a new time after a number of seconds have
been added to, or subtracted from, the current time or optionally
a specifi ed time.
Syntax TIMEADD$([<sexp
1
>,]<nexp>[,<sexp
2
>])
<sexp
1
> is any time given according to the TIME$ format, which a
certain number of seconds should be added to or subtracted
from.
<nexp> is the number of seconds to be added to (or subtracted
from) the current time, or optionally the time specifi ed
by <sexp
1
>.
<sexp
2
> is an optional fl ag "F", indicating that the time will be returned
according to the format specifi ed by FORMAT TIME$.
Remarks
The original time (<sexp
1
>) should always be entered according to the
TIME$ format (HHMMSS), where:
HH = Hour Two digits (00-23)
MM = Minute Two digits (00-59)
SS = Second Two digits (00-59)
Time is entered as a 24-hour cycle, for example 8 o’clock pm is entered
as "200000".
The number of seconds to be added or subtracted from the original
time should be specifi ed as a positive or negative numeric expression
respectively.
If no "F" fl ag is included in the TIMEADD$ function, the result will be
returned according to the TIME$ format, see above.
If the TIMEADD$ function includes an "F" fl ag, the result will be returned
in the format specifi ed by FORMAT TIME$.
Examples
10 A%=30
20 B$=TIMEADD$ ("133050",A%)
30 PRINT B$
RUN
yields:
133120
10 TIME$="133050"
20 FORMAT TIME$ "hh.mm.ss pp"
30 A% = -40
40 PRINT TIMEADD$(A%,"F")
RUN
yields:
01.30.10 pm