Package org.opencms.workplace.list
Class CmsListDateFormatter
java.lang.Object
org.opencms.workplace.list.CmsListDateFormatter
- All Implemented Interfaces:
I_CmsListFormatter
Simple formatter for dates.
- Since:
- 6.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.CmsListDateFormatter(int dateStyle, int timeStyle) Customizable constructor. -
Method Summary
-
Constructor Details
-
CmsListDateFormatter
public CmsListDateFormatter()Default constructor.Use medium style.
-
CmsListDateFormatter
Customizable constructor.- Parameters:
dateStyle- the style for the date parttimeStyle- the style for the time part- See Also:
-
-
Method Details
-
format
Description copied from interface:I_CmsListFormatterReturns a formatted string for the specified data.Take care of
nulldata.- Specified by:
formatin interfaceI_CmsListFormatter- Parameters:
data- the data to formatlocale- the locale for formatting- Returns:
- formatted data
- See Also:
-