Java TimeZone getAvailableIDs() Method

The getAvailableIDs () method of TimeZone class is used to get all the IDs which are supported.

Syntax

Returns

It returns IDs which are available.

Example 1

Output:

All the Available Ids are: 
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmara
Africa/Asmera
Africa/Bamako
Africa/Bangui
Africa/Banjul
Africa/Bissau