Instant now = Instant.now(); Instant yesterday = now.minus(1, ChronoUnit.DAYS); System.out.println(now); System.out.println(yesterday);