Java tutorial
import java.util.TimeZone; public class Main { public static void main(String args[]) { TimeZone tzone = TimeZone.getDefault(); // set time zone ID tzone.setID("GMT+08:00"); // checking time zone ID System.out.println("Time zone ID:" + tzone.getID()); } }