All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scalikejdbc.jodatime.LocalTimeConverter.scala Maven / Gradle / Ivy

The newest version!
package scalikejdbc.jodatime

import org.joda.time.LocalTime

/**
 * org.joda.time.LocalTime converter.
 * @param value LocalTime object
 */
class LocalTimeConverter(private val value: LocalTime) extends AnyVal {

  def toSqlTime: java.sql.Time =
    new java.sql.Time(value.toDateTimeToday.getMillis)

  def toSqlTimestamp: java.sql.Timestamp =
    new java.sql.Timestamp(value.toDateTimeToday.getMillis)

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy