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