<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hnw</author_name>
  <author_url>https://blog.hatena.ne.jp/hnw/</author_url>
  <blog_title>hnwの日記</blog_title>
  <blog_url>https://hnw.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>本日はエイプリルフールなので、ウソでも本当でも誰も困らないPHPのバグの話をします。 PHP 7.1.0からPHPのDateTimeクラスでマイクロ秒の扱いを強化しているようで、挙動やコードの変更がチラホラ見受けられます。（参考：「PHP 7.1からDateTimeが現在時刻のマイクロ秒まで見るようになった - Qiita」） 時刻と時刻の差分を扱うDateIntervalクラスでもPHP 7.1.0以降マイクロ秒に対応したようで、DateInterval::formatメソッドもマイクロ秒の表示に対応しているようです。さっそく実験してみましょう。 &lt;?php $dt1=new DateTim…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhnw.hatenablog.com%2Fentry%2F20170401&quot; title=&quot;PHP 7.1.3で時刻の差を取ると時々1マイクロ秒ズレる - hnwの日記&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>2017-04-01 00:00:00</published>
  <title>PHP 7.1.3で時刻の差を取ると時々1マイクロ秒ズレる</title>
  <type>rich</type>
  <url>https://hnw.hatenablog.com/entry/20170401</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
