CognitiveTPG DLXi User Manual

Page 118

Advertising
background image

S T A N D A R D P R I N T E R C O M M A N D S

is the first day of the week (00 - 53)

%w

Weekday where 0 is Sunday (0 - 6)

%W

Digit

week

number, where Monday is

the first day of the week (00 - 53)

%x

Date, with two-digit year (mm/dd/yy; for

example, 05/21/98)

%X

Time (hh:mm:ss; for example, 21:45:30)

%y

Two-digit year without century (00 to

99)

%Y

Year with century

You can use multiple formatting characters and mix
printable characters with the formatting characters,

to present the time or date in unusual ways.

See also

DELIMIT

Example 1

The following example will set the printer's clock to

June 17, 2009, 3:30:00 PM:

! 0 0 0 0

TIME SET 2009 06 17 15 30 00

END

Example 2

The following label format will read the current time
from the clock, placing the value in the variable

TIME. It will then print a label showing that time,

add 4 days, 6 hours, and 17 minutes to it, and print
the result:

! 0 100 500 1

DELIMIT ~

TIME GET

TEXT 2 20 50 The current date and time are
~TIME %c~

TIME ADD 0000 00 04 06 17 00

TEXT 2 20 100 In 4 days, 6 hours, 17 minutes it
will be ~TIME %c~

END

Revision F, January 2012, CognitiveTPG

109

Advertising
This manual is related to the following products: