Parses column as joda DateTime
Parses column as joda DateTime
import org.joda.time.DateTime val d: Date = SQL("SELECT last_mod FROM tbl").as(scalar[DateTime].single)
Parses column as joda Instant
Parses column as joda Instant
import org.joda.time.Instant val d: Date = SQL("SELECT last_mod FROM tbl").as(scalar[Instant].single)
Parses column as Joda local date.
Parses column as Joda local date. Time zone is the one of default JVM time zone (see DateTimeZone.getDefault).
import org.joda.time.LocalDate val i: LocalDate = SQL("SELECT last_mod FROM tbl"). as(scalar[LocalDate].single)
Parses column as Joda local date/time.
Parses column as Joda local date/time. Time zone is the one of default JVM time zone (see DateTimeZone.getDefault).
import org.joda.time.LocalDateTime val i: LocalDateTime = SQL("SELECT last_mod FROM tbl"). as(scalar[LocalDateTime].single)