67. Getting local date-time in all available time zones
The solution to this problem can be obtained by following these steps:
Get the local date-time.
Get the available time zones.
Before JDK 8, use SimpleDateFormat with the setTimeZone() method.
Starting with JDK 8, use ZonedDateTime.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.