Back to Exposed

Minute

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

1.2.03.4 KB
Original Source

Minute

@JvmName(name = "LocalDateMinuteFunction")

fun <T : LocalDate?> Minute(expr: Expression<T>): Function<Int>

Represents an SQL function that extracts the minute field from a given date expr.


@JvmName(name = "LocalDateTimeMinuteFunction")

fun <T : LocalDateTime?> Minute(expr: Expression<T>): Function<Int>

Represents an SQL function that extracts the minute field from a given datetime expr.


@JvmName(name = "InstantMinuteFunction")

fun <T : Instant?> Minute(expr: Expression<T>): Function<Int>

Represents an SQL function that extracts the minute field from a given timestamp expr.


@JvmName(name = "OffsetDateTimeMinuteFunction")

fun <T : OffsetDateTime?> Minute(expr: Expression<T>): Function<Int>

Represents an SQL function that extracts the minute field from a given timestampWithTimeZone expr.


@JvmName(name = "XInstantMinuteFunction")

fun <T : Instant?> Minute(expr: Expression<T>): 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
Minute(expr)

Content copied to clipboard

Represents an SQL function that extracts the minute field from a given timestamp expr.

Generated by Dokka © 2026 Copyright