Iso

ISO-8601 parsers.

object Iso

Types

Basic
Link copied to clipboard
common
object Basic
Extended
Link copied to clipboard
common
object Extended

Functions

equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

CALENDAR_DATE
Link copied to clipboard
common

Parse ISO-8601 calendar dates in either basic or extended format.

val CALENDAR_DATE: DateTimeParser
DATE
Link copied to clipboard
common

Parse ISO-8601 calendar or ordinal dates in either basic or extended format.

val DATE: DateTimeParser
DATE_RANGE
Link copied to clipboard
common

Parse an ISO-8601 time interval between two dates in either basic or extended format.

Examples:

  • 1990-01-04/1991-08-30

  • ../19910830

  • 19900104/..

  • ../..

  • (empty string)

val DATE_RANGE: GroupedDateTimeParser
DATE_TIME
Link copied to clipboard
common

Parse an ISO-8601 date and time of day in either basic or extended format.

val DATE_TIME: DateTimeParser
DATE_TIME_INTERVAL
Link copied to clipboard
common
val DATE_TIME_INTERVAL: GroupedDateTimeParser
DURATION
Link copied to clipboard
common

Parse an ISO-8601 period containing only the day and time components.

Examples:

  • P1DT5H6.123S

  • PT15H20M

  • PT0S

  • -PT1S

val DURATION: DateTimeParser
INSTANT
Link copied to clipboard
common

Parse an ISO-8601 date-time with the zero UTC offset designator in either basic or extended format.

Examples:

  • 2001-05-10T00:24:00.00000Z

  • 2001-05-10T00:24Z

  • 20010510 0024Z

val INSTANT: DateTimeParser
INSTANT_INTERVAL
Link copied to clipboard
common
val INSTANT_INTERVAL: GroupedDateTimeParser
OFFSET_DATE_TIME
Link copied to clipboard
common

Parse an ISO-8601 date, time of day, and UTC offset in either basic or extended format.

Examples:

  • 2008-09-01T18:30-4:00

  • 2008-09-01 18:30:00Z

  • 20080901 1830-04

val OFFSET_DATE_TIME: DateTimeParser
OFFSET_DATE_TIME_INTERVAL
Link copied to clipboard
common
val OFFSET_DATE_TIME_INTERVAL: GroupedDateTimeParser
OFFSET_TIME
Link copied to clipboard
common

Parse an ISO-8601 time of day and UTC offset in either basic or extended format.

val OFFSET_TIME: DateTimeParser
ORDINAL_DATE
Link copied to clipboard
common

Parse ISO-8601 ordinal dates in either basic or extended format.

val ORDINAL_DATE: DateTimeParser
PERIOD
Link copied to clipboard
common

Parse an ISO-8601 period without any time components.

Examples:

  • P5Y16M3D

  • P5M-15D

  • P0D

val PERIOD: DateTimeParser
TIME
Link copied to clipboard
common

Parse an ISO-8601 time of day in either basic or extended format.

val TIME: DateTimeParser
UTC_OFFSET
Link copied to clipboard
common

Parse an ISO-8601 UTC offset in either basic or extended format.

val UTC_OFFSET: DateTimeParser
YEAR
Link copied to clipboard
common

Parse an ISO-8601 standalone year. Note that not all formats supported by this parser are valid when a year is combined with other fields.

Examples:

  • 2008

  • 0001

  • 0000

  • -0001

  • +0123456789

  • Y12345

val YEAR: DateTimeParser
YEAR_MONTH
Link copied to clipboard
common

Parse an ISO-8601 year-month. The standard supports only extended format.

Example:

  • 2008-09

val YEAR_MONTH: DateTimeParser
ZONED_DATE_TIME
Link copied to clipboard
common

Parse an ISO-8601 date, time of day, UTC offset, and optionally, a non-standard region ID in either basic or extended format.

Examples:

  • 2008-09-01T18:30-4:00[America/New_York]

  • 2008-09-01 18:30:00Z

  • 20080901 1830-04[America/New_York]

val ZONED_DATE_TIME: DateTimeParser
ZONED_DATE_TIME_INTERVAL
Link copied to clipboard
common
val ZONED_DATE_TIME_INTERVAL: GroupedDateTimeParser