public interface TemporalFormat
DateTimeFormatter that allows to use different
formats when parsing and formatting.| 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.
|
TemporalAccessor parse(String text) throws DateTimeException
text - the string to parse, may be null.TemporalAccessor or null if the string was null or empty.DateTimeException - if the string cannot be parsed.String format(TemporalAccessor temporal) throws DateTimeException
temporal - the value to format.null if the value was null.DateTimeException - if the value cannot be formatted.Copyright © 2017–2021 DataStax. All rights reserved.