# KotlinLocalTimeColumnType

class KotlinLocalTimeColumnType : ColumnType<LocalTime> , IDateColumnType

Column for storing times, as LocalTime.

#### Samples

    import kotlinx.datetime.*
    import kotlinx.datetime.TimeZone
    import org.jetbrains.exposed.sql.Column
    import org.jetbrains.exposed.sql.ColumnType
    import org.jetbrains.exposed.sql.IDateColumnType
    import org.jetbrains.exposed.sql.Table
    import org.jetbrains.exposed.sql.vendors.*
    import java.sql.ResultSet
    import java.time.OffsetDateTime
    import java.time.ZoneId
    import java.time.ZoneOffset.UTC
    import java.time.ZonedDateTime
    import java.time.format.DateTimeFormatter
    import java.time.format.DateTimeFormatterBuilder
    import java.time.temporal.ChronoField
    import java.util.*
    import kotlin.time.Duration
    import kotlin.time.Duration.Companion.nanoseconds

    fun main() {
       //sampleStart
       registerColumn(name, KotlinLocalTimeColumnType())
       //sampleEnd
    }

## Constructors

KotlinLocalTimeColumnType
Link copied to clipboard
constructor()

## Types

Companion
Link copied to clipboard
object Companion

## Properties

hasTimePart
Link copied to clipboard
open override val hasTimePart: Boolean = true
nullable
Link copied to clipboard
open override var nullable: Boolean

## Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
nonNullValueAsDefaultString
Link copied to clipboard
open override fun nonNullValueAsDefaultString(value: LocalTime): String
nonNullValueToString
Link copied to clipboard
open override fun nonNullValueToString(value: LocalTime): String
notNullValueToDB
Link copied to clipboard
open override fun notNullValueToDB(value: LocalTime): Any
parameterMarker
Link copied to clipboard
open fun parameterMarker(value: LocalTime?): String
readObject
Link copied to clipboard
open fun readObject(rs: ResultSet, index: Int): Any?
setParameter
Link copied to clipboard
open fun setParameter(stmt: PreparedStatementApi, index: Int, value: Any?)
sqlType
Link copied to clipboard
open override fun sqlType(): String
toString
Link copied to clipboard
open override fun toString(): String
validateValueBeforeUpdate
Link copied to clipboard
open fun validateValueBeforeUpdate(value: LocalTime?)
valueAsDefaultString
Link copied to clipboard
open fun valueAsDefaultString(value: LocalTime?): String
valueFromDB
Link copied to clipboard
open override fun valueFromDB(value: Any): LocalTime
valueToDB
Link copied to clipboard
open fun valueToDB(value: LocalTime?): Any?
valueToString
Link copied to clipboard
open fun valueToString(value: LocalTime?): String