Java tutorial
import java.util.Calendar; import java.util.TimeZone; public class Main { public static void main(String[] args) { // create a calendar Calendar cal = Calendar.getInstance(); // get the time zone TimeZone tz = cal.getTimeZone(); // print the time zone name for this calendar System.out.println("The time zone is :" + tz.getDisplayName()); } }