There are actually two questions that need to be answered here.
1) ?
:
ZoneId z;
z = ZoneId.of("Z"); //for UTC
z = ZoneId.of("+02:00");
z = ZoneId.of("-02:00");
- Z - UTC
- +
- +
- + :
- -hh:
- +
- -hhmm
- + : :
- -hh: :
- +
- -hhmmss
,
'Z' , '+' '-'
, Z
( - Z+02:00
). , .
2) [] String ZoneOffset
?
, ZoneOffset
:
ZoneId z;
z = ZoneId.of("+02:00");
z = ZoneId.of(ZoneOffset.of("+02:00").getId());