CognitiveTPG DLXi User Manual
Page 116

S T A N D A R D P R I N T E R C O M M A N D S
TIME ADD
TE ADD
TIME ?
TE ?
Adds the specified interval to the last
time read by TIME GET (that is, to the
value currently stored in the variable
TIME
). The specified time interval
must be in the form described under
TIME SET
, and you must specify all
six parameters. Added intervals can
be negative or positive. Addition
starts at the seconds field, and added
values arithmetically carry or borrow
when a field over- or underflows.
This command causes the current
time to be sent as a formatted
string back through the
communications port. For example,
“Friday 12/9/2005 12:56:51”.
IMPORTANT!
Not all printers support the
TIME
command, and not all
printers that support the command have a real-time clock
(this is a hardware option). Without a real-time clock, the
TIME
variable will remain at zero or in an undefined
state.
TIME ADD
will change the value stored in
TIME
,
but the results are unpredictable if there is no installed
clock.
Comments
You access the data provided by the clock using the
system variable TIME. This variable has formatting
parameters, allowing you to extract time data in a
variety of forms. Format the variable output by
placing a format string after the variable name and
bounding the variable and its format string with the
variable delimiter (see
).
NOTE:
TIME
will not return a value unless it is followed
by formatting characters and bounded by the variable
delimiter.
Here are the allowable formatting characters you can
Revision F, January 2012, CognitiveTPG
107