TL;DR
Instant.ofEpochSecond( 1_493_367_302L )
.atZone( ZoneId.of( "Pacific/Auckland" ) )
.toLocalDate()
java.util.Date UTC. , , , UTC. , .
, .
java.time
java.util.Date , , java.time.
, , . .
1970-01-01T00:00:00, Instant.
Instant instant = Instant.ofEpochSecond( 1_493_367_302L ) ;
instant.toString(): 2017-04-28T08: 15: 02Z
, . .
continent/region, America/Montreal, Africa/Casablanca Pacific/Auckland. 3-4 , EST IST, , (!).
ZoneId z = ZoneId.of( "America/Montreal" );
ZonedDateTime zdt = instant.atZone( z );
zdt.toString(): 2017-04-28T01:15: 02-07: 00 [America/Los_Angeles]
ZonedDateDate . LocalDate. LocalDate .
LocalDate ld = zdt.toLocalDate();
ld.toString(): 2017-04-28
, Map LocalDate List Set ZonedDateTime . Streams .
java.time
java.time Java 8 . legacy , java.util.Date, Calendar SimpleDateFormat.
Joda-Time, , java.time.
, . Oracle. Qaru . JSR 310.
java.time?
The ThreeTen-Extra project extends java.time with additional classes. This project is proof of possible future additions to java.time. Here you can find useful classes, such as Interval, YearWeek, YearQuarterand longer .