From 7a49155f41a11c93b692b120705432e04323cd1d Mon Sep 17 00:00:00 2001
From: Administrator <1525436766@qq.com>
Date: 星期二, 16 五月 2023 09:12:32 +0800
Subject: [PATCH] 新增告警数据解析

---
 FBS9600ForFBO_Parse/src/com/fgkj/fbs5100/FBS5100_DateTime.java |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/FBS9600ForFBO_Parse/src/com/fgkj/fbs5100/FBS5100_DateTime.java b/FBS9600ForFBO_Parse/src/com/fgkj/fbs5100/FBS5100_DateTime.java
index 3c9b66b..59285bc 100644
--- a/FBS9600ForFBO_Parse/src/com/fgkj/fbs5100/FBS5100_DateTime.java
+++ b/FBS9600ForFBO_Parse/src/com/fgkj/fbs5100/FBS5100_DateTime.java
@@ -3,6 +3,7 @@
 import java.nio.ByteBuffer;
 import java.nio.ByteOrder;
 import java.util.Calendar;
+import java.util.Date;
 
 
 public class FBS5100_DateTime 
@@ -13,6 +14,8 @@
 		public int hour = 0;
 		public int minute = 0;
 		public int second = 0;
+		
+		public Date time = new Date(0);
 		
 		public FBS5100_DateTime clone()
 	    {
@@ -36,6 +39,8 @@
 			hour = FBS5100_ComBase.changeByteToInt(bf.get());
 			minute = FBS5100_ComBase.changeByteToInt(bf.get());
 			second = FBS5100_ComBase.changeByteToInt(bf.get());
+			
+			time.setTime(getTimeInMillis());
 		}
 		
 		public ByteBuffer getPCDateTimeBytes()
@@ -69,7 +74,9 @@
 		@Override
 		public String toString() {
 			return "FBS5100_DateTime [year=" + year + ", month=" + month + ", day=" + day + ", hour=" + hour
-					+ ", minute=" + minute + ", second=" + second + "]";
+					+ ", minute=" + minute + ", second=" + second + ", time=" + time + "]";
 		}
+
+		
 		
 }

--
Gitblit v1.9.1