void (OffsetTime offsetTime, LocalDateTime localDateTime, LocalDate localDate, LocalTime localTime) { if (offsetTime.get(ChronoField.INSTANT_SECONDS) == 0) { System.out.println("1"); } if (localDateTime.get(ChronoField.OFFSET_SECONDS) > 1_000_000_000) { System.out.println("2"); } if (localDate.get(ChronoField.MINUTE_OF_HOUR) > 1000) { System.out.println("3"); } if (localTime.get(ChronoField.ERA) > 4) { System.out.println("4"); } localDate.get(ChronoField.EPOCH_DAY); }