From 4fe3fff3b52219cb5ec7a3aa906b07cc6f96dedc Mon Sep 17 00:00:00 2001
From: DELL <1525436766@qq.com>
Date: 星期四, 24 十月 2024 11:17:32 +0800
Subject: [PATCH] 新增电源告警-协转与电源通信故障

---
 IEC61850_ForPowerSupply_ForNW/src/com/base/Com.java |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/IEC61850_ForPowerSupply_ForNW/src/com/base/Com.java b/IEC61850_ForPowerSupply_ForNW/src/com/base/Com.java
index af4b431..94c080e 100644
--- a/IEC61850_ForPowerSupply_ForNW/src/com/base/Com.java
+++ b/IEC61850_ForPowerSupply_ForNW/src/com/base/Com.java
@@ -179,4 +179,9 @@
 		return calendar.getTimeInMillis();
 	
 	}
+
+	public static String get_DTF(Date dt, String format){
+		DateFormat dtf = new SimpleDateFormat(format);
+		return dtf.format(dt);
+	}
 }

--
Gitblit v1.9.1