<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>Presto</anon>
  </categories>
  <description>Prestoのdate_diffでunitをmonthにしたときの挙動がいまいちよく分からなかったので確認することにした バージョンはPresto 0.223を利用している。 Prestoのdate_diffでunitをmonthにしたとき、date_diffの値はどのような計算になるのだろうか。 30日区切りで1ヶ月 31日区切りで1ヶ月 開始日が1月であれば31日、2月であれば28日というような区切り 終了日が1月であれば31日、2月であれば28日というような区切り 結論から言うと3でなのだけれど、理由はソースコードを見てもよく分からなかった。jodaのgetDifferenceAsLon…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F2019%2F07%2F26%2F194234&quot; title=&quot;Prestoのdate_diffでunitをmonthにしたときの挙動 - by shigemk2&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>2019-07-26 19:42:34</published>
  <title>Prestoのdate_diffでunitをmonthにしたときの挙動</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/2019/07/26/194234</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
