title: How to get the abbreviation / Country code of mobile timezone in android?
body: <p>How to get the Time Zone Abbreviation like IST (India Standard Time), ET (Eastern Time) and all. </p>
  
  <p>I have used the below code to get the time zone information in android, </p>
  
  <p><strong>Option 1:</strong></p>
  
  <pre><code>String mobileTimeZone =  Calendar.getInstance().getTimeZone()
                      .getDisplayName(false, TimeZone.SHORT);
  </code></pre>
  
  <p>I chosen different time zone and the output as follows,</p>
  
  <blockquote>
    <p>GMT+13:00</p>
    
    <p>GMT+00:00</p>
  </blockquote>
  
  <p>But when settings some of the time zone it gives me the proper abbreviation code as output which is below,</p>
  
  <blockquote>
    <p>EST</p>
  </blockquote>
  
  <p>And also I tried the below code which gives the full description of timezone. </p>
  
  <p><strong>Option 2:</strong></p>
  
  <pre><code>String mobileTimeZone = Calendar.getInstance().getTimeZone().getID();
  </code></pre>
  
  <p>Getting the below output which is nothing but zone name:</p>
  
  <blockquote>
    <p>Pacific/Midway</p>
    
    <p>Pacific/Honolulu</p>
    
    <p>America/Montevideo</p>
  </blockquote>
  
  <p>Is there any list of id or table having all the timezone for me to map it.</p>
  
  <p>And also need to consider the day light savings. </p>
  
  <p>Help me to get the abbreviation of Time Zone from android mobile.</p>