Java LocalDateTime Calculate before(LocalDateTime time1, LocalDateTime time2)

Here you can find the source of before(LocalDateTime time1, LocalDateTime time2)

Description

before

License

Open Source License

Declaration

public static boolean before(LocalDateTime time1, LocalDateTime time2) 

Method Source Code


//package com.java2s;
import java.time.LocalDateTime;

public class Main {
    public static boolean before(LocalDateTime time1, LocalDateTime time2) {
        return time1.isBefore(time2);
    }/*  ww w.  j a  v a 2  s .  c  o m*/
}

Related

  1. add(final LocalDateTime original, final int years, final int months, final int days, final int hours, final int minutes)
  2. addHeureMinute(final LocalDateTime time, final int heures, final int minutes)
  3. areDatesOneMonthApart(LocalDateTime start, LocalDateTime end)
  4. atMidnight(LocalDateTime value)
  5. balanceStartAndEndDateTime(LocalDateTime startDateTime, LocalDateTime endDateTime)
  6. calcNextDayOfWeekFromLDT(LocalDateTime ldt, DayOfWeek dow)
  7. ceilDate(LocalDateTime dateTime)
  8. checkIfTimeExist(LocalDateTime date)
  9. clampDateTimeWithMaxAllowedHour(LocalDateTime dateTime, int maxAllowedHour)