title: current date and time in C++
body: <p>Why does this function return Eastern_Daylight_Time instead of EDT while it shows PST and UTC correctly? example - 2012-09-27@10:07:10(Eastern_Daylight_Time)  and 2013-03-28@07:07:27(PDT)</p>
  
  <pre><code> std::string cur_date_time()
  {
    static char buf[256]= {0};
    time_t curtime= time (NULL); //Get the current time
    struct tm *p_loctime=localtime(&amp;curtime);//Convert it to local time representation
  
    // Format local time in a nice format. 
    strftime(buf, 255, "%Y-%m-%d@%H:%M:%S(%Z)", p_loctime);
    return std::string(buf);
  }
  </code></pre>
  
  <p>Can i do something do have one standard format ? like EDT and PDT or Eastern_Daylight_Time and Pacific_Daylight_Time</p>