Android Calendar Compare isSameLocalTime(Calendar calSource, Calendar calDesti)

Here you can find the source of isSameLocalTime(Calendar calSource, Calendar calDesti)

Description

is Same Local Time

Declaration

public static boolean isSameLocalTime(Calendar calSource,
            Calendar calDesti) 

Method Source Code

//package com.java2s;

import java.sql.Timestamp;

import java.util.Calendar;

public class Main {
    public static boolean isSameLocalTime(Calendar calSource,
            Calendar calDesti) {//w  w w.  j  av a2  s .  co  m
        return calSource.equals(calDesti);
    }

    public static boolean equals(Timestamp t1, Timestamp t2) {
        if (t1 == null && t2 == null) {
            return true;
        } else {
            if (t1 == null) {
                return t2.equals(t1);
            } else {
                return t1.equals(t2);
            }
        }
    }
}

Related

  1. isAfterRollingTimeOut(Calendar date)
  2. isBeforeRollingEndTime(Calendar date)
  3. isBeforeRollingTime(Calendar date)
  4. isSameDay(Calendar calSource, Calendar calDesti)
  5. isSameInstant(Calendar cal1, Calendar cal2)
  6. compare(Calendar d1, Calendar d2)
  7. getDateDelta(int delta, String dateFormat)
  8. isDateInInterval(Calendar date, int interval, TimeUnit type)
  9. isCurrentTimeInRange(Calendar now, Calendar start, Calendar end)