<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tnnsst35</author_name>
  <author_url>https://blog.hatena.ne.jp/tnnsst35/</author_url>
  <blog_title>ぼくのセーブポイント</blog_title>
  <blog_url>https://blog.tnnsst35.me/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>&lt;div class=&quot;section&quot;&gt; ある期間中のみ動作する処理をタイマー設定したいときに便利な関数をつくっておくとなにかと重宝する。 public function in_time_range($from, $to) { $now = time(); $from = strtotime($from); $to = strtotime($to); if ($from &lt;= $now &amp;&amp; $now &lt;= $to) { return true; } return false; } この関数を使って「2010年01月01日～2010年01月03日」の期間中に動作する処理を書く。 if (!i…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.tnnsst35.me%2Fentry%2Ftech%2Fphp%2F423%2F&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>2009-11-25 14:40:11</published>
  <title>
				PHPで期間指定のタイマー		</title>
  <type>rich</type>
  <url>https://blog.tnnsst35.me/entry/tech/php/423/</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
