<?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>php</anon>
    <anon>凡ミス</anon>
  </categories>
  <description>とりあえずこんなかんじのものを作ればよいのではなイカ? &lt;?php // ダメな例 echo date('Y-m-d') . &quot;\n&quot;; echo date('Y-m-d') - 1 . &quot;\n&quot;; // 2011が表示されてしまう // こんな感じ $today = date('Y-m-d'); $year = date('Y'); $month = date('m'); $day = date('d'); $yesterday = date('Y-m-d', mktime(0, 0, 0, $month, $day-1, $year)); echo $yesterday . &quot;\n&quot;; ?…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F20120131%2F1327952106&quot; title=&quot;昨日を出力する(例) - 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>2012-01-31 04:35:06</published>
  <title>昨日を出力する(例)</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/20120131/1327952106</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
