Back to Exposed

timestampWithTimeZone

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

1.2.0712 B
Original Source

timestampWithTimeZone

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

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