类 InstantFormatter
java.lang.Object
cn.taketoday.format.datetime.standard.InstantFormatter
Formatter implementation for a JSR-310 Instant,
following JSR-310's parsing rules for an Instant (that is, not using a
configurable DateTimeFormatter): accepting the
default ISO_INSTANT format as well as RFC_1123_DATE_TIME
(which is commonly used for HTTP date header values)- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller, Andrei Nevedomskii
- 另请参阅:
-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
InstantFormatter
public InstantFormatter()
-
-
方法详细资料
-
parse
从接口复制的说明:ParserParse a text String to produce a T.- 指定者:
parse在接口中Parser<Instant>- 参数:
text- the text stringlocale- the current user locale- 返回:
- an instance of T
- 抛出:
ParseException- when a parse exception occurs in a java.text parsing library
-
print
从接口复制的说明:PrinterPrint the object of type T for display.
-