List of usage examples for java.time OffsetDateTime isAfter
public boolean isAfter(OffsetDateTime other)
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.MAX; System.out.println(o.isAfter(OffsetDateTime.MIN)); }
From source file:org.silverpeas.core.date.Period.java
private static void checkPeriod(final OffsetDateTime startDateTime, final OffsetDateTime endDateTime) { Objects.requireNonNull(startDateTime); Objects.requireNonNull(endDateTime); if (startDateTime.isAfter(endDateTime) || startDateTime.isEqual(endDateTime)) { throw new IllegalArgumentException("The end datetime must be after the start datetime"); }/*from w w w.j a v a 2 s .c om*/ }