Home » Tip Bank » Java |
|
Language: Java
Expertise: Intermediate
Expertise: Intermediate
Mar 20, 2019
- in
WEBINAR:
On-Demand
Building the Right Environment to Support AI, Machine Learning and Deep Learning
Watch
→
Get All the Available Time Zones
Before Java 8, this was obtained as a String[] via TimeZone class:
String[] zoneIds = TimeZone.getAvailableIDs();
Java 8 comes with a new approach via java.time.ZoneId class:
Set zoneIds = ZoneId.getAvailableZoneIds();
Octavia Anghel
![]() |
Submit a Tip | ![]() |
Browse "Java" Tips | ![]() |
Browse All Tips |
codeschool.com