getDate

actual open override fun getDate(index: Int): Instant?(source)
actual open override fun getDate(key: String): Instant?(source)
expect open override fun getDate(index: Int): Instant?(source)

The result at the given index interpreted as an Instant date. Returns null if the value cannot be so interpreted.

Return

an Instant date.

Parameters

index

the index of the required value.


expect open override fun getDate(key: String): Instant?(source)

The result value for the given key as an Instant date Returns null if the key doesn't exist or if the value is not a date

Return

The Instant date object.

Parameters

key

The select result key.

actual open override fun getDate(index: Int): Instant?(source)

Gets value at the given index as a Date. JSON does not directly support dates, so the actual property value must be a string, which is then parsed according to the ISO-8601 date format (the default used in JSON.) Returns null if the value doesn't exist, is not a string, or is not parsable as a date. NOTE: This is not a generic date parser! It only recognizes the ISO-8601 format, with or without milliseconds.

Return

the Date value or null.

Parameters

index

the index. This value must not exceed the bounds of the array.


actual open override fun getDate(key: String): Instant?(source)

Gets a property's value as an Instant date. JSON does not directly support dates, so the actual property value must be a string, which is then parsed according to the ISO-8601 date format (the default used in JSON.) Returns null if the value doesn't exist, is not a string, or is not parsable as a date. NOTE: This is not a generic date parser! It only recognizes the ISO-8601 format, with or without milliseconds.

Return

the Instant date value or null.

Parameters

key

the key

actual open override fun getDate(index: Int): Instant?(source)
actual open override fun getDate(key: String): Instant?(source)