Date And Time Format - Intermec EasyCoder E4 Programmer's Reference Manual

Direct protocol v2.10
Hide thumbs Also See for EasyCoder E4:
Table of Contents

Advertisement

4. Date and Time Format

The date and time formats
are not saved in the printer's
battery backed-up memory,
but must be transmitted
to the printer after each
power-up.
EasyCoder E4 Direct Protocol v2.10 – Programmer's Reference Manual
The formats for printing dates and time in connection with the
commands DATE$("F"), DATEADD$("F"), TIME$("F"),
and TIMEADD$("F") (see Chapter 6.5) can be specifi ed by
the commands FORMAT DATE$ and FORMAT TIME$. With
both these commands, you should enter 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 double quotation marks.
FORMAT DATE$ "<string>"
Y
M
D
Default:
Examples:
FORMAT DATE$ "YYYY.MM.DD" ↵
gives for example 2002.01.31
FORMAT DATE$ "DD/MM/YY" ↵
gives for example 31/01/02
FORMAT TIME$ "<string>"
H
h
M
S
P
p
Default:
Examples:
FORMAT TIME$ "HH:MM:SS" ↵
gives for example14:15:37
FORMAT TIME$ "hh.MM.SS p" ↵
gives for example 2.15.37 p
FORMAT TIME$ "hh.MM PP" ↵
gives for example 2.15 PM
Chapter 6
Setting Up the Printer
Year (one digit)
Month (one digit)
Day (one digit)
YYMMDD
Hour in 24-hour cycle (one digit per H;
right-justifi ed)
Hour in 12-hour cycle (one digit per h;
right-justifi ed)
Minute (one digit per M; right-justifi ed)
Second (one digit per S; right-justifi ed)
AM/PM (uppercase) in 12-hour cycle (one
character per P; left-justifi ed)
am/pm (lowercase) in 12-hour cycle (one
character per p; left-justifi ed)
HHMMSS
49

Advertisement

Table of Contents
loading

Table of Contents