title: Can I avoid going through time_t to print a time_point?
body: <p>Here's an example <a href="https://en.cppreference.com/w/cpp/chrono/time_point" rel="nofollow noreferrer">adapted from cppreference.com</a> :</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;iomanip&gt;
  #include &lt;ctime&gt;
  #include &lt;chrono&gt;
  
  int main() {
      std::chrono::system_clock::time_point now = std::chrono::system_clock::now();
      std::time_t now_c = std::chrono::system_clock::to_time_t(now);
      std::cout &lt;&lt; "The time was just "
                &lt;&lt; std::put_time(std::localtime(&amp;now_c), "%F %T") &lt;&lt; '\n';
  }
  </code></pre>
  
  <p>I don't like this. I want to print my time point without having to go through <code>time_t</code>. Can I do so...: </p>
  
  <ol>
  <li>at all? </li>
  <li>with an arbitrary format like <code>put_time</code> supports?</li>
  </ol>
  
  <p><strong>Notes:</strong></p>
  
  <ul>
  <li>Standard library solutions are best; non-standard but robust solutions are also relevant.</li>
  <li>Not a dupe of <a href="https://stackoverflow.com/questions/15777073/how-do-you-print-a-c11-time-point">this</a> - since I'm also interested in arbitrary format printing; but it should be noted that @HowardHinnant's answer to that one resolves the first part of this one.</li>
  </ul>