import java.time.ZoneId;
import java.time.ZonedDateTime;

public class Main {
	public static void main(String[] args) {
		// ZonedDateTime.now() is same as ZonedDateTime.now(ZoneId.systemDefault()). In
		// order to specify a specific timezone, use ZoneId.of(...) e.g.
		// ZonedDateTime.now(ZoneId.of("Europe/London"));
		ZonedDateTime zdtDefaultTz = ZonedDateTime.now();
		System.out.println(zdtDefaultTz);

		// Convert zdtDefaultTz to a ZonedDateTime in another timezone e.g.
		// to ZoneId.of("America/New_York")
		ZonedDateTime zdtNewYork = zdtDefaultTz.withZoneSameInstant(ZoneId.of("America/New_York"));
		System.out.println(zdtNewYork);
	}
}