Class DateTimeFormatterAdapter
java.lang.Object
org.apache.struts2.components.date.DateTimeFormatterAdapter
- All Implemented Interfaces:
DateFormatter
-
Constructor Summary
-
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: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`
-