From 1a2b07f01ba4616fd9e894dddf474b56d020158c Mon Sep 17 00:00:00 2001 From: zhubaomin <zhubaomin> Date: 星期一, 07 四月 2025 15:18:51 +0800 Subject: [PATCH] 整理版本 --- pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/local/localProtocol/ClockDeal.java | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/local/localProtocol/ClockDeal.java b/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/local/localProtocol/ClockDeal.java new file mode 100644 index 0000000..f443413 --- /dev/null +++ b/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/local/localProtocol/ClockDeal.java @@ -0,0 +1,20 @@ +package com.dy.rtuMw.server.local.localProtocol; + +import com.dy.common.util.DateTime; + +public class ClockDeal { + /** + * 鏌ヨ閫氫俊涓棿浠舵椂閽� + */ + public ClockVo deal(){ + ClockVo c = new ClockVo() ; + c.setClock(DateTime.yyyy_MM_dd_HH_mm_ss()) ; + c.setYear(Integer.parseInt(DateTime.yyyy())) ; + c.setMonth(Integer.parseInt(DateTime.MM())) ; + c.setDate(Integer.parseInt(DateTime.dd())) ; + c.setHour(Integer.parseInt(DateTime.HH())) ; + c.setMinute(Integer.parseInt(DateTime.mm())) ; + c.setSecond(Integer.parseInt(DateTime.ss())) ; + return c ; + } +} -- Gitblit v1.8.0