public static boolean isCurrentTimeBetweenTowTimes ( Date fromDate , Date fromTime , Date toDate , Date timeTo ) { JKTimeObject currntTime = getCurrntTime ( ) ; JKTimeObject fromTimeObject = new JKTimeObject ( ) ; JKTimeObject toTimeObject = new JKTimeObject ( ) ; if ( currntTime . after ( fromTimeObject . toTimeObject ( fromDate , fromTime ) ) && currntTime . before ( toTimeObject . toTimeObject ( toDate , timeTo ) ) ) { return true ; } return false ; }
Checks if is current time between tow times .