Searched refs:instant2 (Results 1 – 3 of 3) sorted by relevance
149 instant2: Instant, in areInSamePeriod()153 PERIOD_DAY -> areOnSameDay(instant1, instant2) in areInSamePeriod()154 PERIOD_WEEK -> areOnSameWeek(instant1, instant2) in areInSamePeriod()155 PERIOD_MONTH -> areInSameMonth(instant1, instant2) in areInSamePeriod()160 private fun areOnSameDay(instant1: Instant, instant2: Instant): Boolean { in areOnSameDay()162 val localDate2 = instant2.atZone(timeSource.deviceZoneOffset()).toLocalDate() in areOnSameDay()167 private fun areOnSameWeek(instant1: Instant, instant2: Instant): Boolean { in areOnSameWeek()170 val localDate2 = instant2.atZone(timeSource.deviceZoneOffset()).toLocalDate() in areOnSameWeek()177 private fun areInSameMonth(instant1: Instant, instant2: Instant): Boolean { in areInSameMonth()179 val monthOfYear2 = instant2.atZone(timeSource.deviceZoneOffset()).toLocalDate().month in areInSameMonth()[all …]
123 Instant instant2 = Instant.parse("2023-02-12T10:00:00Z"); in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained() local150 currentGrantTimeState.setPackageGrantTime(anotherPackage, instant2); in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained()162 .hasValue(instant2); in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained()172 .isEqualTo(instant2); in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained()
171 private fun areOnSameDay(instant1: Instant, instant2: Instant): Boolean { in <lambda>()173 val localDate2 = instant2.atZone(timeSource.deviceZoneOffset()).toLocalDate() in <lambda>()