Back to Exposed

second

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

1.2.03.3 KB
Original Source

second

@JvmName(name = "LocalDateSecondExt")

fun <T : LocalDate?> Expression<T>.second(): Function<Int>

Returns the second from this date expression, as an integer between 0 and 59 inclusive.


@JvmName(name = "LocalDateTimeSecondExt")

fun <T : LocalDateTime?> Expression<T>.second(): Function<Int>

Returns the second from this datetime expression, as an integer between 0 and 59 inclusive.


@JvmName(name = "XInstantSecondExt")

fun <T : Instant?> Expression<T>.second(): Function<Int>

Returns the second from this timestamp expression, as an integer between 0 and 59 inclusive.


@JvmName(name = "OffsetDateTimeSecondExt")

fun <T : OffsetDateTime?> Expression<T>.second(): Function<Int>

Returns the second from this timestampWithTimeZone expression, as an integer between 0 and 59 inclusive.


@JvmName(name = "InstantSecondExt")

fun <T : Instant?> Expression<T>.second(): Function<Int>

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
second

Content copied to clipboard

Returns the second from this timestamp expression, as an integer between 0 and 59 inclusive.

Generated by Dokka © 2026 Copyright