Click or drag to resize

ToolsUtilLinkOsSetClock Method

Set the RTC time and date on the printer.

Namespace:  Zebra.Sdk.Printer
Assembly:  SdkApi_Core (in SdkApi_Core.dll) Version: 2.13.898
Syntax
void SetClock(
	string dateTime
)

Parameters

dateTime
Type: SystemString
Date and or time in the proper format (MM-dd-yyyy, HH:mm:ss, or MM-dd-yyyy HH:mm:ss).
Exceptions
ExceptionCondition
ConnectionExceptionIf there is an error communicating with the printer.
ZebraIllegalArgumentExceptionIf the format of dateTime is invalid.
Remarks
Accepted dateTime values include date (e.g. "MM-dd-yyyy"), time(e.g. " HH:mm:ss"), or both(e.g. " MM-dd-yyyy HH:mm:ss").
See Also