回答編集履歴

1

無駄な処理を少し修正

2019/12/22 14:30

投稿

eytyet
eytyet

スコア803

test CHANGED
@@ -36,7 +36,7 @@
36
36
 
37
37
 
38
38
 
39
- let dayInterval = Int(ceil(theDay.timeIntervalSince(today) / (60 * 60 * 24)))
39
+ let dayInterval = Int(theDay.timeIntervalSince(today) / (60 * 60 * 24)) + 1
40
40
 
41
41
  print(dayInterval)
42
42