title: Can't verify the conversion from time_point to tm and tm back to time_point
body: <p>I created a current time_point and converted it to structure tm and printed it's values.
  Now converted this tm structure to time_point.
  On comparing the first and second time_points, it is telling that they're different. But the values of structure are exactly same.</p>
  
  <p>Can someone spot, where I'm doing wrong?</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;ctime&gt;
  #include &lt;chrono&gt;
  
  using namespace std;
  using namespace std::chrono;
  
  system_clock::time_point toTimePoint(struct tm tim)
  {
      return std::chrono::system_clock::from_time_t(mktime(&amp;tim));
  }
  
  tm toTm(system_clock::time_point tp)
  {
      time_t tmt = system_clock::to_time_t(tp);
      struct tm * tim = localtime(&amp;tmt);
      struct tm newTim(*tim);
      cout &lt;&lt; "Info: " &lt;&lt; tim-&gt;tm_mday &lt;&lt; "/" &lt;&lt; tim-&gt;tm_mon &lt;&lt; "/" &lt;&lt; tim-&gt;tm_year &lt;&lt; " " &lt;&lt; tim-&gt;tm_hour &lt;&lt; ":" &lt;&lt; tim-&gt;tm_min &lt;&lt; ":" &lt;&lt; tim-&gt;tm_sec &lt;&lt; endl;
      cout &lt;&lt; "Is Daylight saving: " &lt;&lt; tim-&gt;tm_isdst &lt;&lt; " wday: " &lt;&lt; tim-&gt;tm_wday &lt;&lt; " yday: " &lt;&lt; tim-&gt;tm_yday &lt;&lt; endl;
      return newTim;
  }
  
  int _tmain(int argc, _TCHAR* argv[])
  {
      system_clock::time_point tp = system_clock::now();
  
      struct tm tmstruct = toTm(tp);
      system_clock::time_point newtp = toTimePoint(tmstruct);
      cout &lt;&lt; "Time comparison: " &lt;&lt; (tp == newtp) &lt;&lt; endl;
  
      toTm(newtp);
  }
  </code></pre>
  
  <p>Output:</p>
  
  <p>Info: 8/4/115 16:26:20
  Is Daylight saving: 0 wday: 5 yday: 127</p>
  
  <p>Time comparison: 0</p>
  
  <p>Info: 8/4/115 16:26:20
  Is Daylight saving: 0 wday: 5 yday: 127</p>