Java Data Type How to - Create timezone for an area of timezones


We would like to know how to create timezone for an area of timezones.


import java.time.ZoneId;
import java.util.HashMap;
import java.util.Map;
/*from   w ww . j av  a 2  s. co m*/
public class Main {

  public static void main(String[] args) {
    Map<String, String> map = new HashMap<String, String>();
    map.put("Pacific", "America/Los_Angeles");
    map.put("Mountain", "America/Denver");
    map.put("Central", "America/Chicago");
    map.put("Eastern", "America/New_York");
    ZoneId.of("Mountain", map);