Package com.ethlo.time
Interface Rfc3339Parser
-
- All Known Subinterfaces:
Rfc3339
- All Known Implementing Classes:
AbstractRfc3339,EthloITU,Java8Rfc3339
public interface Rfc3339Parser
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisValid(String dateTimeStr)Check whether the string is a valid date-time according to RFC-3339OffsetDateTimeparseDateTime(String dateTimeStr)Parse the date-time and return it as aOffsetDateTime.
-
-
-
Method Detail
-
parseDateTime
OffsetDateTime parseDateTime(String dateTimeStr)
Parse the date-time and return it as aOffsetDateTime.- Parameters:
dateTimeStr- The date-time string to parse- Returns:
- The
OffsetDateTimeas parsed from the input
-
isValid
boolean isValid(String dateTimeStr)
Check whether the string is a valid date-time according to RFC-3339- Parameters:
dateTimeStr- The date-time to validate- Returns:
- True if valid date-time or null, false otherwise
-
-