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) {
		// Change the JVM's ZoneId, ZoneId.systemDefault() with the applicable ZoneId
		// e.g. ZoneId.of("America/Los_Angeles")
		ZoneId zoneId = ZoneId.systemDefault();

		ZonedDateTime zdt = ZonedDateTime.now(zoneId);
		System.out.println(zdt.getHour());

		LocalDateTime ldt = LocalDateTime.now(zoneId);
		System.out.println(ldt.getHour());

		LocalTime time = LocalTime.now(zoneId);
		System.out.println(time.getHour());
	}
}