- 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 representationof a (potential)Temporalvalue. This can beInstant,LocalDate,LocalTime,LocalDateTime,OffsetTime,OffsetDateTime,ZonedDateTime, orYearMonth. Please note thatChronoLocalDatesuch asHijrahDate,JapaneseDate,MinguoDate, orThaiBuddhistDateare not supported. AlsoYearis 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
valueparsed asTemporalornullif not any of the supportedTemporaltypes (see value param).
-
-