Class RelativeDateFormatterDefault
java.lang.Object
org.spincast.plugins.dateformatter.RelativeDateFormatterDefault
- All Implemented Interfaces:
RelativeDateFormatter
-
Constructor Summary
ConstructorDescriptionRelativeDateFormatterDefault
(Instant instant, LocaleResolver localeResolver) RelativeDateFormatterDefault
(Date date, LocaleResolver localeResolver) -
Method Summary
Modifier and TypeMethodDescriptionformat()
Format!formatType
(RelativeDateFormatType formatType) The type of the format to use.protected String
protected Date
getDate()
protected LocaleResolver
protected org.ocpsoft.prettytime.PrettyTime
getPrettyTime
(Locale locale) The locale to use.
-
Constructor Details
-
RelativeDateFormatterDefault
-
RelativeDateFormatterDefault
-
-
Method Details
-
getDate
-
getLocaleResolver
-
getPrettyTimesByLocale
-
getPrettyTime
-
locale
Description copied from interface:RelativeDateFormatter
The locale to use. Defaults to the one provided by theLocaleResolver
.- Specified by:
locale
in interfaceRelativeDateFormatter
-
formatType
Description copied from interface:RelativeDateFormatter
The type of the format to use. Defaults toRelativeDateFormatType.DEFAULT
.- Specified by:
formatType
in interfaceRelativeDateFormatter
-
format
Description copied from interface:RelativeDateFormatter
Format!- Specified by:
format
in interfaceRelativeDateFormatter
-
getAFewSecondsLabel
-