Package com.liferay.portal.kernel.util
Class Time
Object
com.liferay.portal.kernel.util.Time
- Author:
- Brian Wing Shun Chan
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Datestatic Datestatic Datestatic StringgetDescription(long milliseconds) static StringgetDescription(long milliseconds, boolean approximate) static StringgetDuration(long milliseconds) static StringgetRelativeTimeDescription(long milliseconds, Locale locale, TimeZone timeZone) static StringgetRelativeTimeDescription(long milliseconds, Locale locale, TimeZone timeZone, Format dateTimeFormat) static StringgetRelativeTimeDescription(Date date, Locale locale, TimeZone timeZone) static StringgetRelativeTimeDescription(Date date, Locale locale, TimeZone timeZone, Format dateTimeFormat) static Stringstatic Stringstatic Stringstatic StringgetShortTimestamp(Date date) static StringgetSimpleDate(Date date, String format) static Stringstatic StringgetTimestamp(Date date)
-
Field Details
-
DAY
public static final long DAY- See Also:
-
DURATION_FORMAT
- See Also:
-
HOUR
public static final long HOUR- See Also:
-
MINUTE
public static final long MINUTE- See Also:
-
MONTH
public static final long MONTH- See Also:
-
RFC822_FORMAT
- See Also:
-
SECOND
public static final long SECOND- See Also:
-
SHORT_TIMESTAMP_FORMAT
- See Also:
-
TIMESTAMP_FORMAT
- See Also:
-
WEEK
public static final long WEEK- See Also:
-
YEAR
public static final long YEAR- See Also:
-
-
Constructor Details
-
Time
public Time()
-
-
Method Details
-
getDate
-
getDate
-
getDate
-
getDescription
-
getDescription
-
getDuration
-
getRelativeTimeDescription
-
getRelativeTimeDescription
-
getRelativeTimeDescription
-
getRelativeTimeDescription
-
getRFC822
-
getRFC822
-
getShortTimestamp
-
getShortTimestamp
-
getSimpleDate
-
getTimestamp
-
getTimestamp
-