Plain English

Sets the printer's real-time clock (RTC). Required for date/time stamping on labels. Only works on printers with an RTC module installed.

When to use

During initial printer setup or after a battery replacement that reset the clock.

Syntax

^STyear,month,day,hour,minute,second

Parameters

ParameterDescription
yearYear (2-digit or 4-digit)
monthMonth (01-12)
dayDay (01-31)
hourHour (00-23)
minuteMinute (00-59)
secondSecond (00-59)

Example

^XA
^ST2026,04,01,14,30,00
^XZ

Set clock to April 1, 2026 at 2:30 PM

Try it in the playground View all ZPL commands