Package com.liferay.portal.kernel.util
Class DateUtil_IW
Object
com.liferay.portal.kernel.util.DateUtil_IW
- Author:
- Brian Wing Shun Chan
-
Method Summary
Modifier and TypeMethodDescriptionintbooleanformatDate(String fromPattern, String dateString, Locale locale) getCurrentDate(String pattern, Locale locale) getCurrentDate(String pattern, Locale locale, TimeZone timeZone) intgetDaysBetween(Date date1, Date date2) intgetDaysBetween(Date date1, Date date2, TimeZone timeZone) static DateUtil_IWgetISOFormat(String text) getUTCFormat(String text) intbooleanisFormatAmPm(Locale locale) newDate()newDate(long date) longnewTime()
-
Method Details
-
getInstance
-
compareTo
-
equals
-
formatDate
public String formatDate(String fromPattern, String dateString, Locale locale) throws ParseException - Throws:
ParseException
-
getCurrentDate
-
getCurrentDate
-
getDate
-
getDate
-
getDaysBetween
-
getDaysBetween
-
getISO8601Format
-
getISOFormat
-
getISOFormat
-
getUTCFormat
-
getUTCFormat
-
getYear
-
isFormatAmPm
-
newDate
-
newDate
-
newTime
public long newTime() -
parseDate
- Throws:
ParseException
-
parseDate
- Throws:
ParseException
-