import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
public class Main {
public static void main
(String[] args
) { // The given ZonedDateTime
ZonedDateTime zdtAbidjan = ZonedDateTime.of(
LocalDateTime.of(LocalDate.of(2021, 9, 16),
LocalTime.of(12, 0)),
ZoneId.of("Africa/Abidjan")
);
System.
out.
println(zdtAbidjan
);
ZonedDateTime zdtLondon = zdtAbidjan.withZoneSameInstant(ZoneId.of("Europe/London"));
System.
out.
println(zdtLondon
); }
}
aW1wb3J0IGphdmEudGltZS5Mb2NhbERhdGU7CmltcG9ydCBqYXZhLnRpbWUuTG9jYWxEYXRlVGltZTsKaW1wb3J0IGphdmEudGltZS5Mb2NhbFRpbWU7CmltcG9ydCBqYXZhLnRpbWUuWm9uZUlkOwppbXBvcnQgamF2YS50aW1lLlpvbmVkRGF0ZVRpbWU7CgpwdWJsaWMgY2xhc3MgTWFpbiB7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKSB7CgkJLy8gVGhlIGdpdmVuIFpvbmVkRGF0ZVRpbWUKCQlab25lZERhdGVUaW1lIHpkdEFiaWRqYW4gPSBab25lZERhdGVUaW1lLm9mKAoJCQkJCQkJCQkJTG9jYWxEYXRlVGltZS5vZihMb2NhbERhdGUub2YoMjAyMSwgOSwgMTYpLAoJCQkJCQkJCQkJTG9jYWxUaW1lLm9mKDEyLCAwKSksCgkJCQkJCQkJCQlab25lSWQub2YoIkFmcmljYS9BYmlkamFuIikKCQkJCQkJCQkJKTsKCQlTeXN0ZW0ub3V0LnByaW50bG4oemR0QWJpZGphbik7CgoJCVpvbmVkRGF0ZVRpbWUgemR0TG9uZG9uID0gemR0QWJpZGphbi53aXRoWm9uZVNhbWVJbnN0YW50KFpvbmVJZC5vZigiRXVyb3BlL0xvbmRvbiIpKTsKCQlTeXN0ZW0ub3V0LnByaW50bG4oemR0TG9uZG9uKTsKCX0KfQ==