<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lesamoureuses</author_name>
  <author_url>https://blog.hatena.ne.jp/lesamoureuses/</author_url>
  <blog_title>こんにちはこんにちはmonmonです！</blog_title>
  <blog_url>https://monmon.hateblo.jp/</blog_url>
  <categories>
    <anon>Perl</anon>
  </categories>
  <description>仕事で月初にキャンペーン処理をやるのだけど、その時に「前の月」と「前の月の最終日」が 必要になることが良くある。JavaScriptだと、 var now = new Date(); new Date(now.getFullYear(), now.getMonth(), 0); // 日に0を与えると前の月の最終日みたいなのが思いつくんだけど、Perlだとどうやればいいのかがよくわからない。ということで、今やってるやり方は下のような感じ。 前月（YYYYMM） my $now = DateTime-&gt;now; DateTime-&gt;new( year =&gt; $now-&gt;year, month =…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmonmon.hateblo.jp%2Fentry%2F20100428%2F1272438175&quot; title=&quot;DateTimeを使って先月と先月の最終日を求める - こんにちはこんにちはmonmonです！&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>2010-04-28 16:02:55</published>
  <title>DateTimeを使って先月と先月の最終日を求める</title>
  <type>rich</type>
  <url>https://monmon.hateblo.jp/entry/20100428/1272438175</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
