import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.OffsetDateTime;
import java.time.ZoneOffset;
public class Main {
public static void main
(String[] args
) { OffsetDateTime odt = OffsetDateTime.parse("2011-12-03T03:00:00Z");
LocalDate locDate = odt.toLocalDate();
OffsetDateTime odtWithOffsetTwoHours = odt.withOffsetSameInstant(ZoneOffset.of("+02:00"));
System.
out.
println(odtWithOffsetTwoHours
);
LocalDateTime ldt = odtWithOffsetTwoHours.toLocalDateTime();
}
}
aW1wb3J0IGphdmEudGltZS5Mb2NhbERhdGU7CmltcG9ydCBqYXZhLnRpbWUuTG9jYWxEYXRlVGltZTsKaW1wb3J0IGphdmEudGltZS5PZmZzZXREYXRlVGltZTsKaW1wb3J0IGphdmEudGltZS5ab25lT2Zmc2V0OwoKcHVibGljIGNsYXNzIE1haW4gewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewoJCU9mZnNldERhdGVUaW1lIG9kdCA9IE9mZnNldERhdGVUaW1lLnBhcnNlKCIyMDExLTEyLTAzVDAzOjAwOjAwWiIpOwoJCQoJCUxvY2FsRGF0ZSBsb2NEYXRlID0gb2R0LnRvTG9jYWxEYXRlKCk7CgkJU3lzdGVtLm91dC5wcmludGxuKGxvY0RhdGUpOwoKCQlPZmZzZXREYXRlVGltZSBvZHRXaXRoT2Zmc2V0VHdvSG91cnMgPSBvZHQud2l0aE9mZnNldFNhbWVJbnN0YW50KFpvbmVPZmZzZXQub2YoIiswMjowMCIpKTsKCQlTeXN0ZW0ub3V0LnByaW50bG4ob2R0V2l0aE9mZnNldFR3b0hvdXJzKTsKCgkJTG9jYWxEYXRlVGltZSBsZHQgPSBvZHRXaXRoT2Zmc2V0VHdvSG91cnMudG9Mb2NhbERhdGVUaW1lKCk7CgkJU3lzdGVtLm91dC5wcmludGxuKGxkdCk7Cgl9Cn0=