From 051d0adb8aed66247abd4dab262cf832b744f1d0 Mon Sep 17 00:00:00 2001 From: whoamixzerone Date: Fri, 14 Nov 2025 17:02:00 +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=202=20=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 +++- .idea/.gitignore | 8 -------- .idea/.name | 1 - .idea/gradle.xml | 17 ----------------- .idea/kotlinc.xml | 6 ------ .idea/misc.xml | 13 ------------- .idea/vcs.xml | 6 ------ src/main/kotlin/YukymController.kt | 22 +++++++++++----------- 8 files changed, 14 insertions(+), 63 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/.name delete mode 100644 .idea/gradle.xml delete mode 100644 .idea/kotlinc.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/vcs.xml diff --git a/.gitignore b/.gitignore index b1dff0d..3da789b 100644 --- a/.gitignore +++ b/.gitignore @@ -42,4 +42,6 @@ bin/ .vscode/ ### Mac OS ### -.DS_Store \ No newline at end of file +.DS_Store + +.idea \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 13566b8..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/.name b/.idea/.name deleted file mode 100644 index 09ffe16..0000000 --- a/.idea/.name +++ /dev/null @@ -1 +0,0 @@ -KotlinDebugSample \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml deleted file mode 100644 index 2a65317..0000000 --- a/.idea/gradle.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml deleted file mode 100644 index c224ad5..0000000 --- a/.idea/kotlinc.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index cb276b8..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1dd..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ 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