Class SimpleDateFormatAdapter
java.lang.Object
org.apache.struts2.components.date.SimpleDateFormatAdapter
- All Implemented Interfaces:
DateFormatter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionformat
(TemporalAccessor temporal, String format) Formats provided temporal with the given format
-
Constructor Details
-
SimpleDateFormatAdapter
public SimpleDateFormatAdapter()
-
-
Method Details
-
format
Description copied from interface:DateFormatter
Formats provided temporal with the given format- Specified by:
format
in interfaceDateFormatter
- Parameters:
temporal
- Java 8TemporalAccessor
format
- implementation specific format- Returns:
- a string representation of the formatted `temporal`
-