<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>itchyny</author_name>
  <author_url>https://blog.hatena.ne.jp/itchyny/</author_url>
  <blog_title>プログラムモグモグ</blog_title>
  <blog_url>https://itchyny.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>timefmt-goというGoライブラリを公開してメンテしているのですが、最近タイムゾーン周りの対応が弱いことに気がついて実装していました。タイムゾーンオフセットの表記は +0900 のようにコロンを入れないほうが一般的だと思いますが、RFC3339では +09:00 のようにコロンありの形もvalidです。strftime では %:z によりこの形を出力し、strptimeの %z はコロンありなし両方の形をparseする必要があります。GNU拡張のstrftimeでは %::z を使うと秒まで表記し、%:::z ではオフセットの精度によっていい感じに表記するようです (分精度なら分までな…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fitchyny.hatenablog.com%2Fentry%2F2021%2F02%2F24%2F100000&quot; title=&quot;Pythonのstrptime %zに関するバグ報告をした - プログラムモグモグ&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>2021-02-24 10:00:00</published>
  <title>Pythonのstrptime %zに関するバグ報告をした</title>
  <type>rich</type>
  <url>https://itchyny.hatenablog.com/entry/2021/02/24/100000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
