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

Create successful ePaper yourself

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

Chapter —Program Instructions<br />

FORMAT TIME$<br />

Purpose Statement for specifying the format of the string returned by TIME$("F")<br />

and TIMEADD$("F") instructions.<br />

Syntax FORMAT TIME$<br />

is a string representing the order between hours, minutes and<br />

seconds plus possible separating characters.<br />

“H” represents hours in a 24 hour cycle (one digit per H).<br />

“h” represents hours in a 12 hour cycle (one digit per h).<br />

“M” represents minutes (one digit per M).<br />

“S” represents seconds (one digit per S).<br />

“P” represents AM/PM in connection with a 12 hour cycle.<br />

“p” represents am/pm in connection with a 12 hour cycle.<br />

All other character produce separator characters.<br />

Default: HHMMSS<br />

Reset to default by: Empty string<br />

Remarks Each H, h, M, and S character generates one digit. If the number of each<br />

character exceeds 2, leading space characters are inserted. Each uppercase<br />

or lowercase P character generates one character of AM/PM or am/pm<br />

respectively, when a 12-hour cycle is selected.<br />

Hour, minute and second fields are right-justified, whereas am/pm and<br />

AM/PM fields are left-justified.<br />

Example (the hour is 8 o’clock in the morning):<br />

h generates 8 P generates A<br />

hh generates 08 PP generates AM<br />

hhh generates 08 ↔ p<br />

pp<br />

generates<br />

generates<br />

a<br />

am<br />

To get 12-hour cycle, all hour format characters must be lowercase “h”.<br />

Separating characters are returned as entered in the string. Any character<br />

but H, h, M, S, P, or p are regarded as separators.<br />

The time format is saved in the temporary memory and has to be transmitted<br />

to the printer after each power-up.<br />

Examples Changing the time format according to Swedish standard:<br />

FORMAT TIME$ "HH.MM.SS"<br />

Changing the date format to British standard:<br />

FORMAT TIME$ "hh:MM pp"<br />

100 <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!