Back to Exposed

time

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

1.2.03.1 KB
Original Source

time

fun Table.time(name: String): Column<LocalTime>

A time column to store a time.

Doesn't return nanos from database.

Parameters

name

The column name


@JvmName(name = "LocalDateTimeExt")

fun <T : LocalDate?> Expression<T>.time(): Function<LocalTime>

Returns the time from this date expression.


@JvmName(name = "LocalDateTimeTimeExt")

fun <T : LocalDateTime?> Expression<T>.time(): Function<LocalTime>

Returns the time from this datetime expression.


@JvmName(name = "InstantTimeExt")

fun <T : Instant?> Expression<T>.time(): Function<LocalTime>

Returns the time from this timestamp expression.


@JvmName(name = "OffsetDateTimeTimeExt")

fun <T : OffsetDateTime?> Expression<T>.time(): Function<LocalTime>

Returns the time from this timestampWithTimeZone expression.


@JvmName(name = "XInstantTimeExt")

fun <T : Instant?> Expression<T>.time(): Function<LocalTime>

Deprecated

Deprecated due to usage of old kotlinx.datetime.Instant. The change caused by deprecation of Instant in the kotlinx.datetime (see more on https://github.com/Kotlin/kotlinx-datetime?tab=readme-ov-file#deprecation-of-instant)

Replace with

kotlin
time

Content copied to clipboard

Returns the time from this timestamp expression.

Generated by Dokka © 2026 Copyright