fromIso

fun fromIso(iso: String): String

Rewrites the leading year of an ISO-8601 date or timestamp into PostgreSQL's spelling.

Everything after the year - the month and day, any time, any offset - is left exactly as it stood, and BC goes at the very end, after an offset if there is one, which is where PostgreSQL wants it.

Return

The same instant in PostgreSQL's text form.

Parameters

iso

The value as kotlinx.datetime rendered it.