From c8268aed588293a7742f18cd45592dc91a17ab67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=98=81=ED=98=84?= Date: Fri, 14 Nov 2025 20:07:04 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=94=94=EB=B2=84=EA=B9=85=20=EC=97=B0?= =?UTF-8?q?=EC=8A=B5=EB=AC=B8=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/Lee.kt | 8 ++++++++ src/main/kotlin/Main.kt | 2 +- src/main/kotlin/YukymController.kt | 22 +++++++++++----------- 3 files changed, 20 insertions(+), 12 deletions(-) create mode 100644 src/main/kotlin/Lee.kt diff --git a/src/main/kotlin/Lee.kt b/src/main/kotlin/Lee.kt new file mode 100644 index 0000000..53c6563 --- /dev/null +++ b/src/main/kotlin/Lee.kt @@ -0,0 +1,8 @@ +package com.survivalcoding + +class Lee { +} + +fun main() { + println("한글") +} \ No newline at end of file diff --git a/src/main/kotlin/Main.kt b/src/main/kotlin/Main.kt index 569646f..9e07062 100644 --- a/src/main/kotlin/Main.kt +++ b/src/main/kotlin/Main.kt @@ -4,4 +4,4 @@ fun main() { val yukymController = YukymController() println(yukymController.getTyA()) // 해당 월에 맞는 자시의 국 표시 println(yukymController.getTyB()) // 해당 시간에 맞는 자시의 국 표시 -} \ No newline at end of file +} diff --git a/src/main/kotlin/YukymController.kt b/src/main/kotlin/YukymController.kt index cd4bba7..9016449 100644 --- a/src/main/kotlin/YukymController.kt +++ b/src/main/kotlin/YukymController.kt @@ -5,7 +5,7 @@ import java.time.format.DateTimeFormatter class YukymController { - val nowDate = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-mm-dd")) + val nowDate = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd")) lateinit var nowTime: String @@ -36,16 +36,16 @@ class YukymController { val nowTime = LocalDateTime.now() when { - nowTime.hour >= 0 || nowTime.hour < 2 -> return timeDataOne.first().ty1 - nowTime.hour >= 4 || nowTime.hour < 6 -> return timeDataOne.first().ty2 - nowTime.hour >= 6 || nowTime.hour < 8 -> return timeDataOne.first().ty3 - nowTime.hour >= 8 || nowTime.hour < 10 -> return timeDataOne.first().ty4 - nowTime.hour >= 10 || nowTime.hour < 12 -> return timeDataOne.first().ty5 - nowTime.hour >= 12 || nowTime.hour < 14 -> return timeDataOne.first().ty6 - nowTime.hour >= 16 || nowTime.hour < 18 -> return timeDataOne.first().ty7 - nowTime.hour >= 18 || nowTime.hour < 20 -> return timeDataOne.first().ty8 - nowTime.hour >= 20 || nowTime.hour < 22 -> return timeDataOne.first().ty9 - nowTime.hour >= 22 || nowTime.hour < 24 -> return timeDataOne.first().ty10 + nowTime.hour >= 0 && nowTime.hour < 2 -> return timeDataOne.first().ty1 + nowTime.hour >= 4 && nowTime.hour < 6 -> return timeDataOne.first().ty2 + nowTime.hour >= 6 && nowTime.hour < 8 -> return timeDataOne.first().ty3 + nowTime.hour >= 8 && nowTime.hour < 10 -> return timeDataOne.first().ty4 + nowTime.hour >= 10 && nowTime.hour < 12 -> return timeDataOne.first().ty5 + nowTime.hour >= 12 && nowTime.hour < 14 -> return timeDataOne.first().ty6 + nowTime.hour >= 16 && nowTime.hour < 18 -> return timeDataOne.first().ty7 + nowTime.hour >= 18 && nowTime.hour < 20 -> return timeDataOne.first().ty8 + nowTime.hour >= 20 && nowTime.hour < 22 -> return timeDataOne.first().ty9 + nowTime.hour >= 22 && nowTime.hour < 24 -> return timeDataOne.first().ty10 } return result