From df9252e2902501cfa7b446bf6ed1bde7da91f79c Mon Sep 17 00:00:00 2001 From: Aurelien Hubert Date: Tue, 9 Apr 2019 12:15:26 +0200 Subject: [PATCH] Update methods name --- .../pokeranalytics/android/util/extensions/DateExtension.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/pokeranalytics/android/util/extensions/DateExtension.kt b/app/src/main/java/net/pokeranalytics/android/util/extensions/DateExtension.kt index a479ad74..6a5a6d10 100644 --- a/app/src/main/java/net/pokeranalytics/android/util/extensions/DateExtension.kt +++ b/app/src/main/java/net/pokeranalytics/android/util/extensions/DateExtension.kt @@ -98,7 +98,7 @@ fun Date.getFormattedDuration(toDate: Date) : String { } // Return the date of the beginning of the current date -fun Date.startOfTheDay() : Date { +fun Date.startOfDay() : Date { val calendar = Calendar.getInstance() calendar.time = this calendar.set(Calendar.HOUR_OF_DAY, 0) @@ -109,7 +109,7 @@ fun Date.startOfTheDay() : Date { } // Return the date of the end of the current date -fun Date.endOfTheDay() : Date { +fun Date.endOfDay() : Date { val calendar = Calendar.getInstance() calendar.time = this calendar.set(Calendar.HOUR_OF_DAY, 23)