- java.lang.Object
-
- io.github.mmm.base.temporal.TemporalParser
-
public final class TemporalParser extends Object
-
-
Method Detail
-
parse
public static Temporal parse(String value)
- Parameters:
value
- thedefault string representation
of a (potential)Temporal
value. This can beInstant
,LocalDate
,LocalTime
,LocalDateTime
,OffsetTime
,OffsetDateTime
,ZonedDateTime
, orYearMonth
. Please note thatChronoLocalDate
such asHijrahDate
,JapaneseDate
,MinguoDate
, orThaiBuddhistDate
are not supported. AlsoYear
is not supported as it can easily be confused with a regular integer and can also be detected easily with just two lines of code.- Returns:
- the given
value
parsed asTemporal
ornull
if not any of the supportedTemporal
types (see value param).
-
-