Real Time Clock*

* For printers with the Real Time Clock Option installed.

Using EPL:

Commands: TS (Set Real Time Clock), TT (Define Time Layout), and TD (Define Date Layout)

TS Set Real Time Clock

Use this command to set the time and date in printers equipped with the Real Time Clock option.

Syntax: TSp1,p2,p3,p4,p5,p6

Parameters

p1 = Month
Range: 01 to 12
 
p2 = Day
Range: 01 to 31
 
p3 = Year Last two digits of Year (e.g. 95)
Range: Years 1991- 1999 = 90-99
Years 2000- 2090 = 00-89
 
p4 = Hour in 24 hour format
Range: 00 to 23
 
p5 = Minutes
Range: 00 to 59
 
p6 = Seconds
Range: 00 to 59

Example:

TS01,01,95,01,00,00 :sets the date to Jan. 1, 1995 and the time to 1:00 a.m.
TS12,31,01,15,31,00 :sets the date to Dec. 31, 2001 and the time to 3:31 p.m.

TT Define Time Layout

Use this command to define the time format when printing.

Syntax: TTp1[|p2|p3][+]

Parameters

P1, P2, P3 = h, m, or s

These parameters describe the format of the time display.

At lease one parameter must be supplied

Each parameter can be any of the values h, m, or s and are described below

Value Description
h Hours displayed as 2 digits (e.g. 01)
m Minutes displayed as 2 digits (e.g. 15)
s Seconds displayed as 2 digits (e.g. 00)

[+] = Enable 12 Hour clock format Appending a + to the end of the command string selects 12 hour clock mode. The times will display with an “AM” or “PM” indicator. Default (no +) = 24 hour clock mode

| = Separator character
The separator may be any ASCII character value between 032 and 063. The separator character is printed between the results of each of the supplied parameters.

Examples: If the current time is 1:25 p.m.
  TTh:m:s+ :01:25:00
  TTh,m :13,25
  TTh+ :01 PM

TD Define Date Layout

Use this command to define the date format when printing.

Use the variable TD in a Text or Bar Code (A&B commands) DATA parameter to print the date

Syntax TDp1[|p2|p3]

Parameters

p1, p2, p3 = The parameters describe the format of the date display. At lease one parameter must be supplied. Each parameter can be any of the acceptable values listed below.

Value Description
y2 Year displayed as 2 digits (95)
y4 Year displayed as 4 digits (1995)
me Month displayed as 3 letters (JAN)
mn Month displayed as 2 digits (01)
dd Day displayed as 2 digits (15)

| = Separator character. The separator may be any ASCII character value between 032 and 063. The separator character is printed between the results of each of the supplied parameters.

Examples: If the current date is January 15, 2000:

TDy2/me/dd :00/JAN/15
TDdd-me-y4 :15-JAN-2000
TDdd,mn,y4 :15,01,2000
N
TDdd/me/y2 :15/09/00
A100,100,0,4,1,2,N,"Today is"TD :Today is 15/09/00
A100,200,0,4,1,2,N,"Next Week-"TD+07 :Next Week-22/09/00
A100,300,0,4,1,2,N,"Next Month-"TD+30 :Next Month-15/10/00
A100,400,0,4,1,2,N,"Two Months-"TD+61 :Two Months-15/11/00
P1