Back to Exposed

timestampWithTimeZone

docs/api/exposed-kotlin-datetime/org.jetbrains.exposed.v1.datetime/timestamp-with-time-zone.html

1.2.0812 B
Original Source

timestampWithTimeZone

fun Table.timestampWithTimeZone(name: String): Column<OffsetDateTime>

A timestamp column to store both a date and a time with time zone.

Note: PostgreSQL and MySQL always store the timestamp in UTC, thereby losing the original time zone. To preserve the original time zone, store the time zone information in a separate column.

Parameters

name

The column name

Generated by Dokka © 2026 Copyright