36
UBI EasyCoder 301 Direct Protocol – Programmer's Guide Ed. 1
Chapter 4 Label Design
9. Printable Data
Commands,
cont'd.
DATE$
Returns the current date according to the printer's calendar in the
standard format
YYMMDD
, where
YY
is the last two digits of the
year,
MM
is the number of the month (01–12) and
DD
is the number
of the day (01–31).
Example:
PT DATE$
↵
DATE$ ("F")
Returns the current date according to the printer's calendar in the
format specified by
FORMAT DATE$
(see chapter 6.4).
Example:
PT DATE$("F")
↵
TIME$
Returns the current time according to the printer's clock in the stand-
ard date format
HHMMSS
, where
HH
is the hour (00–24),
MM
is the
minute (00–59) and
SS
is the second (00–59).
Example:
PT TIME$
↵
TIME$ ("F")
Returns the current time according to the printer's clock in the for-
mat specified by
FORMAT TIME$
(see chapter 6.4).
Example:
PT TIME$("F")
↵
WEEKDAY$ ("<date>")
Returns the name of the weekday in plain text according to
NAME
WEEKDAY$
(see chapter 6.4) from a given date or the current date.
<date>
can be specified in the standard format
"YYMMDD"
or by a
DATE$
command.
Examples:
PT WEEKDAY$("970601")
↵
PT WEEKDAY$(DATE$)
↵