Java Date Time - ZoneId SHORT_IDS example

ZoneId SHORT_IDS returns A map of zone overrides to enable the short time-zone names to be used.


SHORT_IDS has the following syntax.

public static final Map<String,String> SHORT_IDS


The following example shows how to use SHORT_IDS.

import java.time.ZoneId;
import java.util.Map;
/*ww  w  .  j a  va  2 s. c  o m*/
public class Main {
  public static void main(String[] args) {
    Map<String,String> z = ZoneId.SHORT_IDS;

The code above generates the following result.