public final class ReadableInstantPrinter extends Object implements Printer<ReadableInstant>
ReadableInstant instances using a DateTimeFormatter.| 构造器和说明 |
|---|
ReadableInstantPrinter(DateTimeFormatter formatter)
Create a new ReadableInstantPrinter.
|
public ReadableInstantPrinter(DateTimeFormatter formatter)
formatter - the Joda DateTimeFormatter instancepublic String print(ReadableInstant instant, Locale locale)
Printerprint 在接口中 Printer<ReadableInstant>instant - the instance to printlocale - the current user locale