From e731486b50c4ea6e2d28f302df449b4bd0b2be57 Mon Sep 17 00:00:00 2001
From: Riku <risaku@163.com>
Date: 星期一, 02 六月 2025 23:02:59 +0800
Subject: [PATCH] 1. 新增走航动态溯源功能
---
src/test/kotlin/com/flightfeather/uav/Test.kt | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/test/kotlin/com/flightfeather/uav/Test.kt b/src/test/kotlin/com/flightfeather/uav/Test.kt
index ead18b4..eca3219 100644
--- a/src/test/kotlin/com/flightfeather/uav/Test.kt
+++ b/src/test/kotlin/com/flightfeather/uav/Test.kt
@@ -3,6 +3,7 @@
import com.flightfeather.uav.common.utils.DateUtil
import com.flightfeather.uav.common.utils.FileExchange
import com.flightfeather.uav.common.utils.FileUtil
+import com.flightfeather.uav.common.utils.TimeUtil
import com.flightfeather.uav.domain.entity.BaseRealTimeData
import com.flightfeather.uav.domain.entity.Company
import com.flightfeather.uav.domain.entity.GridDataDetail
@@ -152,4 +153,14 @@
println(dataDetail)
}
+
+ @Test
+ fun getDayTimeTag() {
+ val period = TimeUtil.getDayTimeTag(
+ Date(2024, 10, 10, 10, 25, 0),
+ Date(2024, 10, 10, 14, 40, 0)
+ )
+
+ println("${period?.first};${period?.second};${period?.third}")
+ }
}
\ No newline at end of file
--
Gitblit v1.9.3