title: Getting Timezone with strftime
body: <p>My time zone is <code>+0700</code>, I'm in Vietnam. I'm using C++'s<code>strftime</code> to get the timezone but the result is different to Java's <code>SimpleDateFormat</code>.</p>
  
  <p>My C++ code : </p>
  
  <pre><code>tm* curr_tm;
  curr_tm = localtime(&amp;timenum);
  char date_string[100];
  std::string format = "'Timezone is :' %Z %z";
  strftime(date_string, sizeof date_string, format.c_str(), curr_tm);
  cout &lt;&lt; date_string;//output: Timezone is : SE Asia Standard Time+0700
  </code></pre>
  
  <p>My Java Code :</p>
  
  <pre><code>SimpleDateFormat formatter = new SimpleDateFormat("'Timezone is :' zzzz Z");
  result = formatter.format(new Date((long) timestamp));
  System.out.println(result);//output: Timezone is : Indochina Time+0700
  </code></pre>
  
  <p>My expected output of C++ should be the same as Java. Is there a difference between the timezone format of these two libraries, and how can I get the same result as Java from C++. </p>