Java tutorial
import java.util.Calendar; import java.util.TimeZone; public class Main { public static void main(String[] args) { Calendar cal = Calendar.getInstance(); System.out.println(cal.getTimeZone().getDisplayName()); TimeZone tz = TimeZone.getTimeZone("GMT"); // set the time zone with the given time zone value and print it cal.setTimeZone(tz); System.out.println(cal.getTimeZone().getDisplayName()); } }