Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 798
Chapter 2 Program Instructions
FORMAT TIME$
Field of Application
Statement for specifying the format of the string returned by
TIME$("F") and TIMEADD$("F") instructions.
Syntax FORMAT TIME$<sexp>
<sexp> is a string representing the order between hours, minutes and
seconds plus possible separating characters.
“H” represents hours in a 24 hour cycle (one digit per H).
“h” represents hours in a 12 hour cycle (one digit per h).
“M” represents minutes (one digit per M).
“S” represents seconds (one digit per S).
“P” represents AM/PM in connection with a 12 hour cycle.
“p” represents am/pm in connection with a 12 hour cycle.
All other character produce separator characters.
Default: HHMMSS
Reset to default by: Empty string
Remarks
Each H, h, M, and S character generates one digit. If the number of each
character exceeds 2, leading space characters are inserted. Each uppercase
or lowercase P character generates one character of AM/PM or am/pm
respectively, when a 12-hour cycle is selected.
Hour, minute and second fi elds are right-justifi ed, whereas am/pm and
AM/PM fi elds are left-justifi ed.
Example (the hour is 8 o’clock in the morning):
h generates 8 P generates A
hh generates 08 PP generates AM
hhh generates
↔
08 p generates a
pp generates am
To get 12-hour cycle, all hour format characters must be lowercase “h”.
Separating characters are returned as entered in the string. Any character but
H, h, M, S, P, or p are regarded as separators.
The time format is saved in the temporary memory and has to be transmitted
to the printer after each power-up.
Examples
Changing the time format according to Swedish standard:
FORMAT TIME$ "HH.MM.SS"
Changing the date format to British standard:
FORMAT TIME$ "hh:MM pp"