to Date Time Interval
Returns this interval with the precision reduced to only the local date and time.
Converts a string to a DateTimeInterval.
The string is assumed to be an ISO-8601 time interval representation in extended format. The output of DateTimeInterval.toString can be safely parsed using this method.
Examples:
1990-01-04T03/1991-08-30T15:30:05.123../1991-08-30T15:30:05.1231990-01-04T03/..../..(empty string)
Throws
if parsing fails
if the parsed time is invalid
fun String.toDateTimeInterval(parser: GroupedDateTimeParser, settings: DateTimeParserSettings = DateTimeParserSettings.DEFAULT): DateTimeInterval
Content copied to clipboard
Converts a string to a DateTimeInterval using a specific parser.
A set of predefined parsers can be found in DateTimeParsers.
Throws
if parsing fails
if the parsed interval is invalid