Set the information of the time slot with the specified number.
Device number
Time slot index
Time slot with the index described by TZIndex. Every eight bits represent a time slot,
in format of hhmmhhmm. For example,
10111223000023590000235900002359000023590000235900002359 indicates a
time slot covering the whole day from Monday to Saturday and from 10:11 to 12:23 of
Sunday.
Return True if it is successful, or return False.
GetTZInfo
//Create Standalone SDK class dynamicly. zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass(); int iMachineNumber = 1; axCZKEM1.Connect_Net("10.0.0.43", 4370); int idwErrorCode = 0; int iTZIndex = 1; string sTZ = "00002359000023590000235900002359000023590000235900002359"; if (axCZKEM1.SetTZInfo(iMachineNumber, iTZIndex, sTZ)) { axCZKEM1.RefreshData(iMachineNumber);//the data in the device should be refreshed MessageBox.Show("SetTZInfo, cbTZIndex:" + iTZIndex.ToString() + " TimeZone:" + sTZ, "Success"); } else { axCZKEM1.GetLastError(ref idwErrorCode); MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error"); }
'Create Standalone SDK class dynamicly. Dim axCZKEM1 As New zkemkeeper.CZKEM Dim iMachineNumber As Integer axCZKEM1.Connect_Net("10.0.0.43", 4370) Dim idwErrorCode As Integer Dim iTZIndex As Integer = 1 Dim sTZ As String = "00002359000023590000235900002359000023590000235900002359" If axCZKEM1.SetTZInfo(iMachineNumber, iTZIndex, sTZ) = True Then axCZKEM1.RefreshData(iMachineNumber) 'the data in the device should be refreshed MsgBox("SetTZInfo, cbTZIndex:" + iTZIndex.ToString() + " TimeZone:" + sTZ, MsgBoxStyle.Information, "Success") Else axCZKEM1.GetLastError(idwErrorCode) MsgBox("Operation failed,ErrorCode=" & idwErrorCode.ToString(), MsgBoxStyle.Exclamation, "Error") End If