Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. implicit def diffForLocalDate(difForString: Diff[String]): Diff[LocalDate] =
  2. new Diff[LocalDate] {
  3. override def apply(left: LocalDate, right: LocalDate,
  4. toIgnore: List[FieldPath]): DiffResult = {
  5. val formatter = DateTimeFormatter.ISO_DATE
  6. difForString.apply(formatter.format(left), formatter.format(right))
  7. }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement