Java tutorial
import java.util.TimeZone; public class Main { public static void main(String args[]) { TimeZone tzone = TimeZone.getTimeZone("America/Los_Angeles"); // set time zone to default tzone.setDefault(tzone); // checking default time zone System.out.println("Default time zone:" + tzone); } }