<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>litt</author_name>
  <author_url>https://blog.hatena.ne.jp/litt/</author_url>
  <blog_title>ゆるゆると</blog_title>
  <blog_url>https://litt.hatenadiary.org/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>PearにもDateクラスがあるが、PHP5にはDateTimeクラスという便利なものがデフォルトで用意されてた。 知らなかったよ、ママン。これでmktime()とはおさらばだ。 $dt = new DateTime(); // 呼び出し時の日時が格納される echo $dt-&gt;format('Y-m-d H:i:s'); $dt-&gt;modify('+1 day'); // 一日進む echo $dt-&gt;format('Y-m-d H:i:s'); $dt-&gt;modify('-1 month'); // 一ヶ月戻る echo $dt-&gt;format('Y-m-d H:i:s'); $dt = …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flitt.hatenadiary.org%2Fentry%2F20080302%2Fp1&quot; title=&quot;PHPで日付、時刻計算 - ゆるゆると&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>2008-03-02 00:00:00</published>
  <title>PHPで日付、時刻計算</title>
  <type>rich</type>
  <url>https://litt.hatenadiary.org/entry/20080302/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
