Java tutorial
import java.util.*; public class Main { public static void main(String[] args) { GregorianCalendar cal = (GregorianCalendar) GregorianCalendar.getInstance(); // set to another time zone cal.setTimeZone(TimeZone.getTimeZone("GMT")); System.out.println("New Time Zone:" + cal.getTimeZone().getDisplayName()); } }