com.liferay.portal.kernel.util
Class DateUtil_IW
java.lang.Object
com.liferay.portal.kernel.util.DateUtil_IW
public class DateUtil_IW
- extends Object
|
Method Summary |
int |
compareTo(Date date1,
Date date2)
|
boolean |
equals(Date date1,
Date date2)
|
String |
formatDate(String fromPattern,
String dateString,
Locale locale)
|
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 date1,
Date date2)
|
int |
getDaysBetween(Date date1,
Date date2,
TimeZone timeZone)
|
static DateUtil_IW |
getInstance()
|
DateFormat |
getISO8601Format()
|
DateFormat |
getISOFormat()
|
DateFormat |
getISOFormat(String text)
|
DateFormat |
getUTCFormat()
|
DateFormat |
getUTCFormat(String text)
|
boolean |
isFormatAmPm(Locale locale)
|
Date |
newDate()
|
Date |
newDate(long date)
|
long |
newTime()
|
Date |
parseDate(String dateString,
Locale locale)
|
Date |
parseDate(String pattern,
String dateString,
Locale locale)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static DateUtil_IW getInstance()
compareTo
public int compareTo(Date date1,
Date date2)
equals
public boolean equals(Date date1,
Date date2)
formatDate
public String formatDate(String fromPattern,
String dateString,
Locale locale)
throws ParseException
- Throws:
ParseException
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 date1,
Date date2)
getDaysBetween
public int getDaysBetween(Date date1,
Date date2,
TimeZone timeZone)
getISO8601Format
public DateFormat getISO8601Format()
getISOFormat
public DateFormat getISOFormat()
getISOFormat
public DateFormat getISOFormat(String text)
getUTCFormat
public DateFormat getUTCFormat()
getUTCFormat
public DateFormat getUTCFormat(String text)
isFormatAmPm
public boolean isFormatAmPm(Locale locale)
newDate
public Date newDate()
newDate
public Date newDate(long date)
newTime
public long newTime()
parseDate
public Date parseDate(String dateString,
Locale locale)
throws ParseException
- Throws:
ParseException
parseDate
public Date parseDate(String pattern,
String dateString,
Locale locale)
throws ParseException
- Throws:
ParseException