. +/- offset-from-UTC .
java.time
java.time, Java 8 :
, , (Asia/Kolkata), +05:30, UTC. America/Regina -06:00, UTC.
,
, , ,
offset-from-UTC - , ; . A - , , . , .
continent/region, America/Montreal, Africa/Casablanca Pacific/Auckland. 3-4 , EST IST, , (!).
ZoneId z = ZoneId.of( "Africa/Tunis" ) ;
. . , - , "" .
LocalDate ld = LocalDate.now( z ) ;
UTC , Asia/Dubai.
ZonedDateTime zdt = ZonedDateTime.now( ZoneId.of( `Asia/Dubai` ) ) ;
zdt.toString(): 2018-03-01T02: 39: 18.801642 + 04: 00 [/]
UTC , America/Blanc-Sablon.
ZonedDateTime zdt = ZonedDateTime.now( ZoneId.of( `America/Blanc-Sablon` ) ) ;
zdt.toString(): 2018-02-28T18: 39: 18.801642-04: 00 [/-]
ZoneOffset
--UTC, ZoneOffset.
ZoneOffset offset = ZoneOffset.ofHoursMinutes( 4 , 30 ) ; // Positive hours is ahead of UTC (east), while negative hours is behind UTC (west).
UTC ( ) ZoneOffset.UTC.
java.time
java.time Java 8 . legacy , java.util.Date, Calendar SimpleDateFormat.
Joda-Time, , java.time.
, . Oracle. Qaru . JSR 310.
java.time . JDBC, JDBC 4.2 , , java.sql.*.
java.time?
ThreeTen-Extra java.time . java.time. , Interval, YearWeek, YearQuarter .