Here you can find the source of isBetween(LocalTime lt, LocalTime startTime, LocalTime endTime)
public static boolean isBetween(LocalTime lt, LocalTime startTime, LocalTime endTime)
//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 }