public class SimpleTemporalFormat extends Object implements TemporalFormat
ZonedTemporalFormat instead.| Constructor and Description |
|---|
SimpleTemporalFormat(DateTimeFormatter parserAndFormatter) |
SimpleTemporalFormat(DateTimeFormatter parser,
DateTimeFormatter formatter) |
| Modifier and Type | Method and Description |
|---|---|
String |
format(TemporalAccessor temporal)
Formats the given temporal.
|
TemporalAccessor |
parse(String text)
Parses the given string as a temporal.
|
public SimpleTemporalFormat(DateTimeFormatter parserAndFormatter)
public SimpleTemporalFormat(DateTimeFormatter parser, DateTimeFormatter formatter)
public TemporalAccessor parse(String text)
TemporalFormatparse in interface TemporalFormattext - the string to parse, may be null.TemporalAccessor or null if the string was null or empty.public String format(TemporalAccessor temporal)
TemporalFormatformat in interface TemporalFormattemporal - the value to format.null if the value was null.Copyright © 2017–2021 DataStax. All rights reserved.