Calendar calendar = Calendar.getInstance(); TimeZone timeZone = TimeZone.getTimeZone("GMT+0"); calendar.setTimeZone(timeZone);In this example, we create a Calendar object and set its time zone to GMT+0 using the setTimeZone method. This method is part of the java.util package library.