Modifier and Type | Field and Description |
---|---|
private DateTimeFormatter |
formatter |
Constructor and Description |
---|
ReadableInstantPrinter(DateTimeFormatter formatter)
Create a new ReadableInstantPrinter.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
print(ReadableInstant instant,
java.util.Locale locale)
Print the object of type T for display.
|
public ReadableInstantPrinter(DateTimeFormatter formatter)
formatter
- the Joda DateTimeFormatter instancepublic java.lang.String print(ReadableInstant instant, java.util.Locale locale)
Printer