Liferay 6.0.5

com.liferay.portal.kernel.util
Class DateUtil_IW

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

public class DateUtil_IW
extends Object


Method Summary
 int compareTo(Date date1, Date date2)
           
 int compareTo(Date date1, Date date2, boolean ignoreMilliseconds)
           
 boolean equals(Date date1, Date date2)
           
 boolean equals(Date date1, Date date2, boolean ignoreMilliseconds)
           
 String getCurrentDate(String pattern, Locale locale)
           
 String getCurrentDate(String pattern, Locale locale, TimeZone timeZone)
           
 String getDate(Date date, String pattern, Locale locale)
           
 String getDate(Date date, String pattern, Locale locale, TimeZone timeZone)
           
 int getDaysBetween(Date startDate, Date endDate, TimeZone timeZone)
           
static DateUtil_IW getInstance()
           
 DateFormat getISO8601Format()
           
 DateFormat getISOFormat()
           
 DateFormat getISOFormat(String text)
           
 DateFormat getUTCFormat()
           
 DateFormat getUTCFormat(String text)
           
 Date newDate()
           
 Date newDate(long date)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DateUtil_IW getInstance()

compareTo

public int compareTo(Date date1,
                     Date date2)

compareTo

public int compareTo(Date date1,
                     Date date2,
                     boolean ignoreMilliseconds)

equals

public boolean equals(Date date1,
                      Date date2)

equals

public boolean equals(Date date1,
                      Date date2,
                      boolean ignoreMilliseconds)

getCurrentDate

public String getCurrentDate(String pattern,
                             Locale locale)

getCurrentDate

public String getCurrentDate(String pattern,
                             Locale locale,
                             TimeZone timeZone)

getDate

public String getDate(Date date,
                      String pattern,
                      Locale locale)

getDate

public String getDate(Date date,
                      String pattern,
                      Locale locale,
                      TimeZone timeZone)

getDaysBetween

public int getDaysBetween(Date startDate,
                          Date endDate,
                          TimeZone timeZone)

getISOFormat

public DateFormat getISOFormat()

getISOFormat

public DateFormat getISOFormat(String text)

getISO8601Format

public DateFormat getISO8601Format()

getUTCFormat

public DateFormat getUTCFormat()

getUTCFormat

public DateFormat getUTCFormat(String text)

newDate

public Date newDate()

newDate

public Date newDate(long date)

Liferay 6.0.5