Interface TimeContextParser
-
- All Known Implementing Classes:
TimeContextParser.ByDateTimeFormatter,TimeContextParser.ByEpochTime,TimeContextParser.Relative
public interface TimeContextParser
Parsers to resolve a time from user input.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTimeContextParser.ByDateTimeFormatterAttemp to parse using an existingDateTimeFormatter.static classTimeContextParser.ByEpochTimeGiven a second since the epoch, create a time in the local time zone.static classTimeContextParser.RelativeParse a time using relative time syntax.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable ZonedDateTimeparse(String input)static TimeContextParser[]parsersForZone(ZoneId zone)Get a list of parse
-
-
-
Method Detail
-
parsersForZone
static TimeContextParser[] parsersForZone(ZoneId zone)
Get a list of parse- Parameters:
zone- the time zone to parse in- Returns:
- parser candidates
-
parse
@Nullable ZonedDateTime parse(String input)
-
-