Android Date Interval Get checkIsIntervalDay(String startTime, String endTime)

Here you can find the source of checkIsIntervalDay(String startTime, String endTime)

Description

check Is Interval Day

Declaration

public static boolean checkIsIntervalDay(String startTime, String endTime) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean checkIsIntervalDay(String startTime,
            String endTime) {//from w  w w.j a  v  a  2  s . c o  m
        boolean isIntervalDay = false;
        if ("00:00".compareTo(endTime) < 0
                && "12:00".compareTo(endTime) >= 0
                && "12:00".compareTo(startTime) < 0
                && "23:59".compareTo(startTime) >= 0) {
            isIntervalDay = true;
        }
        return isIntervalDay;
    }
}

Related

  1. secondDiff(Date date1, Date date2)
  2. secondDiff(String startTime, String endTime)
  3. secondsBetween(Date dt1, Date dt2)
  4. getDateOffset()
  5. interval(Date date)
  6. totalDays(Object o)
  7. calculatorDaysAgo(String date, Locale locale, String format)
  8. getFirstInterval(Context context, long lastupdate, long updateinterval)
  9. timeDifference(Date date)