<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nainaistar</author_name>
  <author_url>https://blog.hatena.ne.jp/nainaistar/</author_url>
  <blog_title>きり丸の技術日記</blog_title>
  <blog_url>https://nainaistar.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>技術</anon>
  </categories>
  <description>Pythonの標準ライブラリを使って、先月今月来月の月初月末を求める方法がわからなかったので、記事にします。 なお、サードパーティ製のライブラリdateutilを使ったほうが楽に導き出せるようですが、この記事では標準ライブラリにこだわることにします。 環境 Python 3.8.6 pytest 5.4.3 使用する標準ライブラリ datetime calendar import datetime import calendar 基準 次の日付を基準にします。 now = datetime.datetime(2020, 2, 15, 20, 29, 39) 今月の月初 replace(day=…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnainaistar.hatenablog.com%2Fentry%2F2021%2F07%2F14%2F120000&quot; title=&quot;Pythonの標準ライブラリで先月今月来月の月初月末を求める(datetime, calendar) - きり丸の技術日記&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>https://cdn-ak.f.st-hatena.com/images/fotolife/n/nainaistar/20210707/20210707002516.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-07-14 12:00:00</published>
  <title>Pythonの標準ライブラリで先月今月来月の月初月末を求める(datetime, calendar)</title>
  <type>rich</type>
  <url>https://nainaistar.hatenablog.com/entry/2021/07/14/120000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
