Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7  261
Chapter 2 Program Instructions
TIME$
Field of Application
 Variable for setting or returning the current time.
Syntax Setting the time:  TIME$=<sexp> 
<sexp> sets the current time by a 6-digit number specifying Hour, 
Minute and Second. 
 Reading the time:  <svar>=TIME$[(<sexp>)] 
<svar> returns the current time according to the printer’s clock.
<sexp> is an optional fl ag "F", indicating that the time will be returned 
according to the format specifi ed by FORMAT TIME$.
Remarks
 This variable works best if a real-time clock circuit (RTC) is fi tted on the 
printer’s CPU board. The RTC is battery backed-up and will keep record of 
the time even if the power is turned off or lost. 
 If no RTC is installed, the internal clock will be used. After startup, an error 
will occur when trying to read the date or time before the internal clock has 
been manually set by means of either a DATE$ or a TIME$ variable. If only 
the date is set, the internal clock starts at 00:00:00 and if only the time 
is set, the internal clock starts at Jan 01 1980. After setting the internal 
clock, you can use the DATE$ and TIME$ variables the same way as 
when an RTC is fi tted, until a power off or REBOOT causes the date 
and time values to be lost. 
 The  time  is  always entered  and, by  default, returned  in  the  following 
order 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 clock will be reset at the exact moment, when the appending carriage 
return character is received, for example when you press the Return key 
(Immediate Mode and Intermec Direct Protocol), or when the instruction is 
executed (Programming Mode).
 The format for how the printer will return time from a TIME$("F") variable 
can be changed by means of a FORMAT TIME$ statement.
Example
 Setting and reading the time, then printing it on the screen of the host:
  10   TIME$ = "154300"  
  20   FORMAT TIME$ "HH.MM"
  30   PRINT "Time is "+TIME$("F")
  RUN
  yields:
  Time is 15.43










