Java LocalTime isBetween(LocalTime lt, LocalTime startTime, LocalTime endTime)

Here you can find the source of isBetween(LocalTime lt, LocalTime startTime, LocalTime endTime)

Description

is Between

License

Open Source License

Declaration

public static boolean isBetween(LocalTime lt, LocalTime startTime, LocalTime endTime) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.time.LocalTime;

public class Main {
    public static boolean isBetween(LocalTime lt, LocalTime startTime, LocalTime endTime) {
        return lt.compareTo(startTime) >= 0 && lt.compareTo(endTime) <= 0;
    }//from ww w  .j a v  a  2  s.  c  o m
}

Related

  1. convertLocalTimeToString(LocalTime time)
  2. currentTimeIsBetween(LocalTime from, LocalTime to)
  3. deserializeLocalTime(String date)
  4. fastTimeWrite(LocalTime localTime)
  5. getTimeDiff(LocalTime start, LocalTime end)
  6. isLocalTimeInRange(LocalTime value, LocalTime optionalMinimum, LocalTime optionalMaximum, boolean inclusiveOfEndpoints)
  7. parseLocalTime(String string)
  8. repDiff(LocalTime start, LocalTime end, byte type)
  9. reportTimeDiff(LocalTime start, LocalTime end)