Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.util
Class CalendarUtil

java.lang.Object
  extended by com.liferay.portal.kernel.util.CalendarUtil

public class CalendarUtil
extends Object


Field Summary
static String[] DAYS_ABBREVIATION
           
static String ICAL_EXTENSION
           
static int[] MONTH_IDS
           
 
Constructor Summary
CalendarUtil()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DAYS_ABBREVIATION

public static final String[] DAYS_ABBREVIATION

ICAL_EXTENSION

public static final String ICAL_EXTENSION
See Also:
Constant Field Values

MONTH_IDS

public static final int[] MONTH_IDS
Constructor Detail

CalendarUtil

public CalendarUtil()
Method Detail

afterByDay

public static boolean afterByDay(Date date1,
                                 Date date2)

beforeByDay

public static boolean beforeByDay(Date date1,
                                  Date date2)

equalsByDay

public static boolean equalsByDay(Date date1,
                                  Date date2)

getAge

public static int getAge(Date date,
                         Calendar today)

getAge

public static int getAge(Date date,
                         TimeZone tz)

getDays

public static String[] getDays(Locale locale)

getDays

public static String[] getDays(Locale locale,
                               String pattern)

getDaysInMonth

public static int getDaysInMonth(Calendar cal)

getDaysInMonth

public static int getDaysInMonth(int month,
                                 int year)

getGregorianDay

public static int getGregorianDay(Calendar cal)

getGTDate

public static Date getGTDate(Calendar cal)

getLastDayOfWeek

public static int getLastDayOfWeek(Calendar cal)

getLTDate

public static Date getLTDate(Calendar cal)

getMonthIds

public static int[] getMonthIds()

getMonths

public static String[] getMonths(Locale locale)

getMonths

public static String[] getMonths(Locale locale,
                                 String pattern)

getTimestamp

public static Timestamp getTimestamp(Date date)

isAfter

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)

isBroadcastDate

public static boolean isBroadcastDate(int month,
                                      int day,
                                      int year)

isDate

public static boolean isDate(int month,
                             int day,
                             int year)

isFuture

public static boolean isFuture(int month,
                               int year)

isFuture

public static boolean isFuture(int month,
                               int day,
                               int year)

isFuture

public static boolean isFuture(int month,
                               int day,
                               int year,
                               int hour,
                               int minute,
                               int amPm)

isFuture

public static boolean isFuture(int month,
                               int day,
                               int year,
                               int hour,
                               int minute,
                               int amPm,
                               TimeZone timeZone,
                               Locale locale)

isFuture

public static boolean isFuture(int month,
                               int day,
                               int year,
                               TimeZone timeZone,
                               Locale locale)

isFuture

public static boolean isFuture(int month,
                               int year,
                               TimeZone timeZone,
                               Locale locale)

isGregorianDate

public static boolean isGregorianDate(int month,
                                      int day,
                                      int year)

isJulianDate

public static boolean isJulianDate(int month,
                                   int day,
                                   int year)

roundByMinutes

public static Calendar roundByMinutes(Calendar cal,
                                      int interval)

Liferay 6.1.2-ce-ga3