to Instant Interval
Converts this interval to an InstantInterval.
Converts a string to an InstantInterval.
The string is assumed to be an ISO-8601 time interval representation in extended format. The output of InstantInterval.toString can be safely parsed using this method.
Examples:
1990-01-04T03Z/1991-08-30T15:30:05.123Z../1991-08-30T15:30:05.123Z1990-01-04T03Z/..../..(empty string)
Throws
if parsing fails
if the parsed time is invalid
fun String.toInstantInterval(parser: GroupedDateTimeParser, settings: DateTimeParserSettings = DateTimeParserSettings.DEFAULT): InstantInterval
Content copied to clipboard
Converts a string to an InstantInterval using a specific parser.
A set of predefined parsers can be found in DateTimeParsers.
Throws
if parsing fails
if the parsed interval is invalid