Parses column as Java8 instant.
Parses column as Java8 instant. Time zone offset is the one of default JVM time zone (see ZoneId.systemDefault).
import java.time.Instant import anorm.Java8._ val i: Instant = SQL("SELECT last_mod FROM tbl").as(scalar[Instant].single)
Parses column as Java8 local date/time.
Parses column as Java8 local date/time. Time zone offset is the one of default JVM time zone (see ZoneId.systemDefault).
import java.time.LocalDateTime import anorm.Java8._ val i: LocalDateTime = SQL("SELECT last_mod FROM tbl"). as(scalar[LocalDateTime].single)
Parses column as Java8 zoned date/time.
Parses column as Java8 zoned date/time. Time zone offset is the one of default JVM time zone (see ZoneId.systemDefault).
import java.time.ZonedDateTime import anorm.Java8._ val i: ZonedDateTime = SQL("SELECT last_mod FROM tbl"). as(scalar[ZonedDateTime].single)