<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuheiomori0718</author_name>
  <author_url>https://blog.hatena.ne.jp/yuheiomori0718/</author_url>
  <blog_title>メモ置き場</blog_title>
  <blog_url>https://y0m0r.hateblo.jp/</blog_url>
  <categories>
    <anon>golang</anon>
  </categories>
  <description>関連：Python2で2つの日付間の月数を取得する - brainstormgoでも書いてみた。 Duration使ってもできそう package main import ( &quot;fmt&quot; &quot;time&quot; ) // get months between two dates. func MonthDiff(d1, d2 time.Time) int { if d2.After(d1) { d1, d2 = d2, d1 } return (d1.Year()-d2.Year())*12 + int(d1.Month()) - int(d2.Month()) } func main() { d1 :=…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20140408%2F1396976518&quot; title=&quot;golangで2つの日付間の月数を取得する - メモ置き場&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>2014-04-08 02:01:58</published>
  <title>golangで2つの日付間の月数を取得する</title>
  <type>rich</type>
  <url>https://y0m0r.hateblo.jp/entry/20140408/1396976518</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
