public static DateTime GetDateTime(byte[] buf) { return(GetDateTime(BCDCoder.GetString(buf))); }
/// <summary> /// BCD形式的byte数组转换成字符串 /// </summary> /// <param name="byteArray"></param> /// <returns></returns> public static string GetString(byte[] byteArray) { return(BCDCoder.GetString(byteArray, 0, byteArray.Length)); }