title: Is there a standard date/time class in C++?
body: <p>Does C++ stl have a standard time class? Or do I have to convert to c-string before writing to a stream. Example, I want to output the current date/time to a string stream:</p>
  
  <pre>
  time_t tm();
  ostringstream sout;
  sout &lt;&lt; tm &lt;&lt; ends;
  </pre>
  
  <p>In this case I get the current date/time written out as a number without any formatting. I can use
  c- runtime function <code>strftime</code> to format tm first, but that seems like it should not be necessary if the stl has a time class that can be instantiated from time_t value</p>