public class DateTimeParser extends Object
DateTimeFormatter
with the DateTimeSeparatorNormalizer
and
simple optimization the support of DateComponentOrdering.
This class is thread-safe once an instance is created.
Modifier and Type | Method and Description |
---|---|
DateComponentOrdering |
getOrdering() |
TemporalAccessor |
parse(String input)
Parses the provided String as a TemporalAccessor if possible, otherwise returns null.
|
public DateComponentOrdering getOrdering()
public TemporalAccessor parse(String input)
This function fully support partial dates and will return the best possible date resolution based
on the DateComponentOrdering
provided.
This function will not throw DateTimeParseException but returns null in case the input can not be parsed.
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.