devxlogo

August 10, 2018

Getting All Available Time Zones in Java

The package java.time has APIs to get all the available zone ids. The API is getAvailableZoneIds(). import java.time.*;import java.util.*;public class AllTimeZones{ public static void main(String args[]) { AllTimeZones allTimeZones =