{"description":"def diff_month(d1, d2): \"\"\" get months between two dates. >>> from datetime import date >>> diff_month(date(2012, 12, 1), date(2013, 3, 1)) 3 \"\"\" if d1 > d2: d1, d2 = d2, d1 return (d2.year - d1.year)*12 + d2.month - d1.month datetime - Best way to find the months between two dates (in python) - Sta\u2026","categories":["python"],"blog_url":"https://y0m0r.hateblo.jp/","author_name":"yuheiomori0718","provider_name":"Hatena Blog","version":"1.0","width":"100%","image_url":null,"author_url":"https://blog.hatena.ne.jp/yuheiomori0718/","published":"2014-04-07 23:59:31","title":"Python2\u30672\u3064\u306e\u65e5\u4ed8\u9593\u306e\u6708\u6570\u3092\u53d6\u5f97\u3059\u308b","url":"https://y0m0r.hateblo.jp/entry/20140407/1396882771","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20140407%2F1396882771\" title=\"Python2\u30672\u3064\u306e\u65e5\u4ed8\u9593\u306e\u6708\u6570\u3092\u53d6\u5f97\u3059\u308b - \u30e1\u30e2\u7f6e\u304d\u5834\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u30e1\u30e2\u7f6e\u304d\u5834","type":"rich","height":"190"}