Selecting Format For Time And Date - Intermec EasyCoder 501XP Programmer's Reference Manual

Intermec easycoder 501xp: reference guide
Hide thumbs Also See for EasyCoder 501XP:
Table of Contents

Advertisement

Chapter 6 — Setting Up the Printer
6.4 Selecting Format for Date and Time
The formats for printing dates and time in connection with
,
DATE$("F")
DATEADD$("F")
Chapter 4.9, can be specifi ed by the instructions
. In both these instructions, you should enter a string
FORMAT TIME$
of characters representing the various types of information. The order
and number of the characters decides the format. You can also include
separating characters like periods, slashes, colons, etc. Note that the input
string must be enclosed by quotation marks.
FORMAT DATE$ "<string>"
Y = Year, M = Month, D = Day (Default: YYMMDD)
Examples:
FORMAT DATE$ "YYYY.MM.DD" ↵
FORMAT DATE$ "DD/MM/YY" ↵
FORMAT TIME$ "<string>"
H = Hour in 24-hour cycle (one digit per H; right-justifi ed)
h = Hour in 12-hour cycle (one digit per h; right-justifi ed)
M = Minute (one digit per M; right-justifi ed)
S = Second (one digit per S; right-justifi ed)
P = AM/PM (uppercase) in 12-hour cycle (one character per P; left-justifi ed)
p = am/pm (lowercase) in 12-hour cycle (one character per p; left-justifi ed)
Default: HHMMSS
Examples:
FORMAT TIME$ "HH:MM:SS" ↵
FORMAT TIME$ "HH.MM" ↵
FORMAT TIME$ "hh.MM.SS p" ↵
FORMAT TIME$ "hh.MM PP" ↵
60
Intermec Direct Protocol v7.80 Programmer's Reference Manual
,
, and
TIME$("F")
TIMEADD$("F")
and
FORMAT DATE$
yields for example
2004.12.01
yields for example
01/12/04
yields for example
14:15:37
yields for example
yields for example
02.15.37 p
ields for example
y
02.15 PM
, see
14.15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents