title: How print current time in C++11?
body: <p>Is there an easy way in C++11 to print the current wall time using the appropriate formatting rules of the locale associated with the ostream being used?</p>
  
  <p>What I really want to do is something like this:</p>
  
  <pre><code>myStream &lt;&lt; std::chrono::system_clock::now();
  </code></pre>
  
  <p>and have the date and time printed in accord with whatever locale is associated with <code>myStream</code>. C++11 offers <code>put_time</code>, but it takes a formatting string, and I want the format to be determined by the locale associate with the stream. There's also <code>time_put</code> and <code>time_put_byname</code>, but based on the examples at cppreference.com, these functions are used in conjunction with <code>put_time</code>. </p>
  
  <p>Is there no simple way to print a timepoint value without manually formatting it?</p>