Display List of TimeZone with GMT and UTC in JavaIt is very important to set proper TimeZone in Java code when dealing with Day Light Saving dates. In this section, we will display the list of TimeZone with GMT. TimeZoneA time zone is an area that observes a uniform standard time for legal, commercial and social purposes. Time zones tend to follow the boundaries between countries and their subdivisions instead of strictly following longitude, because it is convenient for areas in frequent communication to keep the same time. There are the following time zones are available in Java library: Java timezones for Africa Cities (total 54 time zones are available) Java timezones for American Cities (total 167 time zones are available) Java timezones for Antarctica (total 12 time zones are available) Java timezones for Arctic (total 1 time zones are available) Java timezones for Asian Cities/Regions (total 99 time zones are available) Java timezones for Australian Cities/Regions (total 12 time zones are available) Java timezones for Australian Cities/Regions (total 23 time zones are available) Java timezones for Brazilian Cities/Region (total 4 time zones are available) Other regions: Canada, Chile, Cuba, Egypt, Europe, US (total 257 time zones are available) GMTGMT stands for Greenwich Mean Time Zone. It is the mean solar time displayed by Shepherd gate clock at the Royal observatory in Greenwich, London counted from midnight. It is used to clearly designate epoch by avoiding confusing reference to local time zone. When the sun is at its highest point exactly above the Prime Meridian, it is 12:00 noon at Greenwich. Java Program to Display List of Time zone with GMTTimeZoneList.java Output: The list is too long to show. It displays total 629 time zones with GMT. Coordinated Universal Time (UTC)UTC time zone is a standard time zone by which the word regulates clocks and time. It is a constant time scale that does not change for Daylight Saving Time (DST). UtcExample.java DateTimes.java Output: It displays various time zone than above. |