How Should I convert Instant to DateTime in Java?

时间:2016-04-25 09:07:16

标签: java datetime

How Should I convert Instant to DateTime in Java?

  1. How Should I convert Instant to DateTime in Java?
  2. How Should I convert ZoneId to DateTimeZone ?

1 个答案:

答案 0 :(得分:-2)

for using datetime use timestamp which gives date time accuracy to exact seconds.for date time zone, jdk8 has api which gives u date time zone. for using timestamp in jpa, use sql time with annotation temporal.