public class InstantFormatter extends java.lang.Object implements Formatter<java.time.Instant>
Formatter implementation for a JSR-310 Instant,
following JSR-310's parsing rules for an Instant (that is, not using a
configurable DateTimeFormatter).Instant.parse(java.lang.CharSequence)| Constructor and Description |
|---|
InstantFormatter() |
| Modifier and Type | Method and Description |
|---|---|
java.time.Instant |
parse(java.lang.String text,
java.util.Locale locale)
Parse a text String to produce a T.
|
java.lang.String |
print(java.time.Instant object,
java.util.Locale locale)
Print the object of type T for display.
|
public java.time.Instant parse(java.lang.String text,
java.util.Locale locale)
throws java.text.ParseException
Parserpublic java.lang.String print(java.time.Instant object,
java.util.Locale locale)
Printer