Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- implicit def diffForLocalDate(difForString: Diff[String]): Diff[LocalDate] =
- new Diff[LocalDate] {
- override def apply(left: LocalDate, right: LocalDate,
- toIgnore: List[FieldPath]): DiffResult = {
- val formatter = DateTimeFormatter.ISO_DATE
- difForString.apply(formatter.format(left), formatter.format(right))
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement