rules... implicit val a2: Add[ZonedDateTime,Duration] implicit val a3: Add[Duration,Duration] implicit val s2: Subtract[LocalDateTime,LocalDateTime,Duration implicit val m1: Multiply[Duration] implicit val d1: Divide[Duration,Int,Duration] implicit val s3: Subtract[LocalTime,LocalTime,Duration] implicit val s4: Subtract[ZonedDateTime,Period,ZonedDateTime] implicit val s1: Subtract[LocalDateTime,Period,LocalDateTime] implicit val a1: Add[LocalTime,Duration]
val mother = (LocalDate(2020,5,1) to LocalDate(2020,5,31)) .filter(_.getDayOfWeek == SUNDAY)(1) val turkey = (LocalDate(2019,11,1) to LocalDate(2019,11,30)) .filter(_.getDayOfWeek == THURSDAY)(3) dates.filter(d => d > turkey && d < mother) // Seq(2019-12-13, 2020-03-13)