public class CalendarUtil
extends Object
Modifier and Type | Field and Description |
---|---|
static String[] |
DAYS_ABBREVIATION |
static String |
ICAL_EXTENSION |
static int[] |
MONTH_IDS |
Constructor and Description |
---|
CalendarUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
afterByDay(Date date1,
Date date2) |
static boolean |
beforeByDay(Date date1,
Date date2) |
static boolean |
equalsByDay(Date date1,
Date date2) |
static int |
getAge(Date date,
Calendar today) |
static int |
getAge(Date date,
TimeZone tz) |
static String[] |
getDays(Locale locale) |
static String[] |
getDays(Locale locale,
String pattern) |
static int |
getDaysInMonth(Calendar cal) |
static int |
getDaysInMonth(int month,
int year) |
static int |
getGregorianDay(Calendar cal) |
static Date |
getGTDate(Calendar cal) |
static int |
getLastDayOfWeek(Calendar cal) |
static Date |
getLTDate(Calendar cal) |
static int[] |
getMonthIds() |
static String[] |
getMonths(Locale locale) |
static String[] |
getMonths(Locale locale,
String pattern) |
static Timestamp |
getTimestamp(Date date) |
static boolean |
isAfter(int month1,
int day1,
int year1,
int hour1,
int minute1,
int amPm1,
int month2,
int day2,
int year2,
int hour2,
int minute2,
int amPm2,
TimeZone timeZone,
Locale locale) |
static boolean |
isBroadcastDate(int month,
int day,
int year) |
static boolean |
isDate(int month,
int day,
int year) |
static boolean |
isFuture(int month,
int year) |
static boolean |
isFuture(int month,
int day,
int year) |
static boolean |
isFuture(int month,
int day,
int year,
int hour,
int minute,
int amPm) |
static boolean |
isFuture(int month,
int day,
int year,
int hour,
int minute,
int amPm,
TimeZone timeZone,
Locale locale) |
static boolean |
isFuture(int month,
int day,
int year,
TimeZone timeZone,
Locale locale) |
static boolean |
isFuture(int month,
int year,
TimeZone timeZone,
Locale locale) |
static boolean |
isGregorianDate(int month,
int day,
int year) |
static boolean |
isJulianDate(int month,
int day,
int year) |
static Calendar |
roundByMinutes(Calendar cal,
int interval) |
public static final String[] DAYS_ABBREVIATION
public static final String ICAL_EXTENSION
public static final int[] MONTH_IDS
public static boolean afterByDay(Date date1, Date date2)
public static boolean beforeByDay(Date date1, Date date2)
public static boolean equalsByDay(Date date1, Date date2)
public static int getAge(Date date, Calendar today)
public static int getAge(Date date, TimeZone tz)
public static String[] getDays(Locale locale)
public static String[] getDays(Locale locale, String pattern)
public static int getDaysInMonth(Calendar cal)
public static int getDaysInMonth(int month, int year)
public static int getGregorianDay(Calendar cal)
public static Date getGTDate(Calendar cal)
public static int getLastDayOfWeek(Calendar cal)
public static Date getLTDate(Calendar cal)
public static int[] getMonthIds()
public static String[] getMonths(Locale locale)
public static String[] getMonths(Locale locale, String pattern)
public static Timestamp getTimestamp(Date date)
public static boolean isAfter(int month1, int day1, int year1, int hour1, int minute1, int amPm1, int month2, int day2, int year2, int hour2, int minute2, int amPm2, TimeZone timeZone, Locale locale)
public static boolean isBroadcastDate(int month, int day, int year)
public static boolean isDate(int month, int day, int year)
public static boolean isFuture(int month, int year)
public static boolean isFuture(int month, int day, int year)
public static boolean isFuture(int month, int day, int year, int hour, int minute, int amPm)
public static boolean isFuture(int month, int day, int year, int hour, int minute, int amPm, TimeZone timeZone, Locale locale)
public static boolean isFuture(int month, int day, int year, TimeZone timeZone, Locale locale)
public static boolean isFuture(int month, int year, TimeZone timeZone, Locale locale)
public static boolean isGregorianDate(int month, int day, int year)
public static boolean isJulianDate(int month, int day, int year)
public static Calendar roundByMinutes(Calendar cal, int interval)