Back to Exposed

Second

docs/api/exposed-java-time/org.jetbrains.exposed.v1.javatime/-second/index.html

1.2.06.0 KB
Original Source

Second

class Second<T : Temporal?>(val expr: Expression<T>) : Function<Int>

Represents an SQL function that extracts the second field from a given temporal expr.

MembersMembers & Extensions

Constructors

Second

Link copied to clipboard

constructor(expr: Expression<T>)

Properties

columnType

Link copied to clipboard

open override val columnType: IColumnType<Int>

expr

Link copied to clipboard

val expr: Expression<T>

Functions

date

Link copied to clipboard

fun <T : Temporal?> Expression<T>.date(): Date<T>

Returns the date from this temporal expression.

day

Link copied to clipboard

fun <T : Temporal?> Expression<T>.day(): Day<T>

Returns the day from this temporal expression, as an integer between 1 and 31 inclusive.

equals

Link copied to clipboard

open operator override fun equals(other: Any?): Boolean

hashCode

Link copied to clipboard

open override fun hashCode(): Int

hour

Link copied to clipboard

fun <T : Temporal?> Expression<T>.hour(): Hour<T>

Returns the hour from this temporal expression, as an integer between 0 and 23 inclusive.

minute

Link copied to clipboard

fun <T : Temporal?> Expression<T>.minute(): Minute<T>

Returns the minute from this temporal expression, as an integer between 0 and 59 inclusive.

month

Link copied to clipboard

fun <T : Temporal?> Expression<T>.month(): Month<T>

Returns the month from this temporal expression, as an integer between 1 and 12 inclusive.

second

Link copied to clipboard

fun <T : Temporal?> Expression<T>.second(): Second<T>

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

time

Link copied to clipboard

fun <T : Temporal?> Expression<T>.time(): Time<T>

Returns the time from this temporal expression.

toQueryBuilder

Link copied to clipboard

open override fun toQueryBuilder(queryBuilder: QueryBuilder)

toString

Link copied to clipboard

open override fun toString(): String

year

Link copied to clipboard

fun <T : Temporal?> Expression<T>.year(): Year<T>

Returns the year from this datetime expression, as an integer.

Generated by Dokka © 2026 Copyright