title: Implement thread safe ctime function
body: <p>ANSI C time function are not thread safe: in particular <code>gmtime</code>, <code>ctime</code> and <code>strftime</code>. For what I know the only thread-safe function is <code>time</code>.</p>
  
  <p>If I'm right in Visual Studio this function are all thread safe. I'm using MinGW compiler (4.8.0 with dwarf-2, that one provided by Qt 5.1.0 ).</p>
  
  <p>How can inplement thread safe function of <code>gmtime_r</code>, <code>ctime_r</code> and <code>strftime_r</code>? Or is there a more thread-safe library for that?</p>
  
  <p>I'm using C++11 as default language.</p>
  
  <p><b> edit 1</b> <br>
  I'm using MinGW 4.8.0 (posix, dwarf-2) on windows xp.</p>
  
  <p><b> edit 2 </b><br>
  I'm considering to use Boost.DateTime may it be a good choice?</p>
  
  <p>I'm very disappointed for the lack on c++11 of time managment!</p>