<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>toge</author_name>
  <author_url>https://blog.hatena.ne.jp/toge/</author_url>
  <blog_title>toge's diary</blog_title>
  <blog_url>https://toge.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>C++20以降の世界ではstd::chronoを使うのがすっかりあたり前になりつつありますね。ありがたや。 私もstd::chronoの恩恵に預かっていたのですが std::chronoが提供する型を標準出力やログに出力したい という用途がでてきて少し嵌ったのでメモしておきます。 fmtlibでは問題なく動く std::printと同様にfmt::printであればfmt/chrono.hをincludeすることで、{:&lt;format&gt;}と任意の形式で日付・時刻を表示することができます。 #include &lt;chrono&gt; #include &quot;fmt/chrono.h&quot; int main() …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoge.hatenablog.com%2Fentry%2F2025%2F08%2F25%2F195311&quot; title=&quot;Quillでstd::chronoを書式化しようとしてMissing Codecエラーになる - toge&amp;#39;s diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-08-25 19:53:11</published>
  <title>Quillでstd::chronoを書式化しようとしてMissing Codecエラーになる</title>
  <type>rich</type>
  <url>https://toge.hatenablog.com/entry/2025/08/25/195311</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
