
EasyCoder E4 Direct Protocol v2.10 – Programmer’s Reference Manual
41
Chapter 4
Label Design
DATEADD$
(["<original date>",]<number of days>[,
"F"
])
Adds or subtracts a certain number of days to the current date or
optionally to a specifi ed date.
<original date>
optional; it is entered in the standard date
format “YYMMDD”. Note that the origi-
nal date must be enclosed by double quota-
tion marks.
<number of days>
the number of days to be added to or sub-
tracted from the current date or, optionally,
the date specifi ed by <original date>. In case
of subtraction, the <number of days> should
be preceded by a minus sign (-).
<"F">
an optional fl ag specifying that the result
should be returned in the format specifi ed by
FORMAT DATE$ instead of the standard
format YYMMDD.
Example:
PT DATEADD$("000101",-15,"F")
↵
TIMEADD$
(["<original time>",]<number of sec’s>[,"
F
"])
Adds or subtracts a certain number of seconds to the current time or
optionally to a specifi ed moment of time.
<original time>
optional; it is entered in the standard date
format ”HHMMSS”. Note that the original
time must be enclosed by double quotation
marks.
<number of secs>
the number of seconds to be added to or sub-
tracted from the current time or, optionally,
the moment of time specifi ed by <original
time>. In case of subtraction, the <number
of secs> should be preceded by a minus sign
(-).
<"F">
an optional fl ag specifying that the result
should be returned in the format specifi ed by
FORMAT TIME$ instead of the standard
format HHMMSS.
Example:
PT TIMEADD$("123026",100,"F")
↵
9. Printable Commands, cont.