shjung 10 months ago
parent
commit
16296b13cb

+ 12 - 0
src/main/java/com/ggits/comm/server/process/work/GgitsPacketWorker.java

@@ -216,6 +216,18 @@ public class GgitsPacketWorker extends AbstractAppWorker implements Runnable {
 //                    return constants.LC_STATE_COMM_OK;
 //                }
 
+//import java.util.Date;
+//// Unix 시간 계산
+//Date date = new Date(2023 - 1900, 1, 15, 0, 0, 0);
+//long unixTime = date.getTime() / 1000L;
+//// 4바이트 배열에 값 넣기
+//byte[] currTime = new byte[4];
+//currTime[0] = (byte) (unixTime & 0xFF);
+//currTime[1] = (byte) ((unixTime >> 8) & 0xFF);
+//currTime[2] = (byte) ((unixTime >> 16) & 0xFF);
+//currTime[3] = (byte) ((unixTime >> 24) & 0xFF);
+
+
                 IntStatusDto status = intDto.getStatus();
                 status.COLLCT_DTIME          = COLLCT_DTIME;
                 status.A_RING_PHASE_VAL      = ringAP;