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: 3.0.3271
Syntax
void SetClock(
	string dateTime
)

Parameters

dateTime  String
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