<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>matzryo</author_name>
  <author_url>https://blog.hatena.ne.jp/matzryo/</author_url>
  <blog_title>matzryo’s diary</blog_title>
  <blog_url>https://blog.matzryo.com/</blog_url>
  <categories>
  </categories>
  <description>経緯 Rails4で、日付の足し算の挙動が自分の期待と異なっていたので調査した。 1/31の翌月の翌月も、1/31の二ヶ月後も、どちらも2018/3/31になるのを期待していたが、実際の結果は異なった。 前者は「1/31の翌月の翌月」 =&gt; 「2/28の翌月」 =&gt; 「3/28」と処理されているもよう。 Loading development environment (Rails 4.2.10) irb(main):001:0&gt; 1.month + 1.month == 2.month =&gt; true irb(main):002:0&gt; Date.new(2018, 1, 31) + (1.mo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.matzryo.com%2Fentry%2F2018%2F08%2F12%2F230123&quot; title=&quot;Rails4, Rails5の時間の足し算の挙動の違い - matzryo’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>2018-08-12 23:01:23</published>
  <title>Rails4, Rails5の時間の足し算の挙動の違い</title>
  <type>rich</type>
  <url>https://blog.matzryo.com/entry/2018/08/12/230123</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
