Package org.apache.struts2.components.date

# Class DateTimeFormatterAdapter

java.lang.Object
org.apache.struts2.components.date.DateTimeFormatterAdapter

All Implemented Interfaces:
  `DateFormatter`

public class DateTimeFormatterAdapter extends Object implements DateFormatter

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DateTimeFormatterAdapter()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `format(TemporalAccessor temporal, String format)`
  Formats provided temporal with the given format

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DateTimeFormatterAdapter

    public DateTimeFormatterAdapter()

- ## Method Details

  - ### format

    public String format(TemporalAccessor temporal, String format)
    Description copied from interface: `DateFormatter`
    Formats provided temporal with the given format
    Specified by:
      `format` in interface `DateFormatter`
    Parameters:
      `temporal` - Java 8 `TemporalAccessor`
      `format` - implementation specific format
    Returns:
      a string representation of the formatted `temporal`