回答編集履歴
1
無駄な処理を少し修正
test
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
|
38
38
|
|
39
|
-
let dayInterval = Int(
|
39
|
+
let dayInterval = Int(theDay.timeIntervalSince(today) / (60 * 60 * 24)) + 1
|
40
40
|
|
41
41
|
print(dayInterval)
|
42
42
|
|