toString

expect open override fun toString(): String

Converts this instant to the ISO-8601 string representation.

The representation uses the UTC-SLS time scale, instead of UTC. In practice, this means that leap second handling will not be readjusted to the UTC. Leap seconds will not be added or skipped, so it is impossible to acquire a string where the component for seconds is 60, and for any day, it's possible to observe 23:59:59.

See also

actual open override fun toString(): String
actual open override fun toString(): String
actual open override fun toString(): String