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