SubiyaCryolite/jds

Add support for LocalDate and ZonedDateTime

SubiyaCryolite opened this issue · 2 comments

Add support for LocalDate and ZonedDateTime.

ZonedDateTime
We will use unix timestamp (long) to store zoned date times across all database implementations.

long unix_timestamp = //timestamp from DB
Instant instant = Instant.ofEpochSecond(unix_timestamp);
ZonedDateTime zonedDateTime = ZonedDateTime.ofInstant( instant, ZoneId.systemDefault());

LocalDate
We will use existing DateTime tables for this operation.

We will also add support for LocalDate and LocalTime in the next release :)