Java Calendar Year isWithinYears(int year, java.util.Calendar start, java.util.Calendar end)

Here you can find the source of isWithinYears(int year, java.util.Calendar start, java.util.Calendar end)

Description

is Within Years

License

Open Source License

Declaration

public static boolean isWithinYears(int year, java.util.Calendar start, java.util.Calendar end) 

Method Source Code

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

public class Main {
    public static boolean isWithinYears(int year, java.util.Calendar start, java.util.Calendar end) {
        return ((start.get(java.util.Calendar.YEAR) < year) && (end.get(java.util.Calendar.YEAR) > year));
    }/*from  w  w w . j  a  v  a2  s  .  c  o m*/
}

Related

  1. isBeforeDay(Calendar date1, Calendar date2, boolean ignoreYear)
  2. isSameDay(Calendar date1, Calendar date2, boolean ignoreYear)
  3. isSameDayOfYear(Calendar calendar1, Calendar calendar2)
  4. isSameWeekOfYear(Calendar calendar1, Calendar calendar2)
  5. isToThisDayOrLater(int year, int month, int day, java.util.Calendar start, java.util.Calendar end)
  6. parseCalendar(int year, int month, double day, TimeZone zone)
  7. sameYear(Calendar one, Calendar two)
  8. setCalendarFields(Calendar cal, int year, int month, int day, int hour, int minute, int second, int millis)
  9. setDate(Calendar cal, int year, int month, int day)