17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FORMAT TIME$<br />

Chapter 2 Program Instructions<br />

Field of Application 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<br />

and 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. Uppercase or<br />

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 AM/<br />

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 generates a<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 but<br />

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 p"<br />

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

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

Saved successfully!

Ooh no, something went wrong!