Class InstantFormatter
java.lang.Object
org.springframework.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), as of Spring 4.3.- Since:
- 4.0
- Author:
- Juergen Hoeller, Andrei Nevedomskii
- See Also:
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
InstantFormatterpublic InstantFormatter()
 
- 
- 
Method Details- 
parseDescription copied from interface:ParserParse a text String to produce a T.- Specified by:
- parsein interface- Parser<Instant>
- Parameters:
- text- the text string
- locale- the current user locale
- Returns:
- an instance of T
- Throws:
- ParseException- when a parse exception occurs in a java.text parsing library
 
- 
printDescription copied from interface:PrinterPrint the object of type T for display.
 
-