
EasyCoder E4 Direct Protocol v2.10 – Programmer’s Reference Manual
49
Chapter 6
Setting Up the Printer
4. Date and Time Format
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
Year (one digit)
M
Month (one digit)
D
Day (one digit)
Default:
YYMMDD
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
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"
↵
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
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
Страница 1: ...Programmer s Reference Manual EasyCoder E4 Direct Protocol v2 10 ...
Страница 121: ......