Hour

@JvmName(name = "LocalDateHourFunction")
fun <T : LocalDate?> Hour(expr: Expression<T>): Function<Int>

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


@JvmName(name = "LocalDateTimeHourFunction")
fun <T : LocalDateTime?> Hour(expr: Expression<T>): Function<Int>

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


@JvmName(name = "InstantHourFunction")
fun <T : Instant?> Hour(expr: Expression<T>): Function<Int>

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


@JvmName(name = "OffsetDateTimeHourFunction")
fun <T : OffsetDateTime?> Hour(expr: Expression<T>): Function<Int>

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


@JvmName(name = "XInstantHourFunction")
fun <T : Instant?> Hour(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

Hour

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