<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									age birth のショートコードについて - Cocoonテーマに関する質問				            </title>
            <link>https://wp-cocoon.com/community/cocoon-theme/age-birth-%e3%81%ae%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/</link>
            <description>Cocoon ディスカッション掲示板</description>
            <language>ja</language>
            <lastBuildDate>Thu, 16 Jul 2026 23:31:34 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: age birth のショートコードについて</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/age-birth-%e3%81%ae%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67405</link>
                        <pubDate>Fri, 13 Jan 2023 05:41:06 +0000</pubDate>
                        <description><![CDATA[転記していただいたｍｋ２様はじめ解決にご協力いただいた皆様
このたびは貴重な時間をさいていただきありがとうごさいました。
疑問が解決し、うれしい限りです。本当にありがとうございました。]]></description>
                        <content:encoded><![CDATA[<p><span>転記していただいたｍｋ２様はじめ解決にご協力いただいた皆様</span></p>
<p>このたびは貴重な時間をさいていただきありがとうごさいました。</p>
<p>疑問が解決し、うれしい限りです。本当にありがとうございました。</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>tonchin</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/age-birth-%e3%81%ae%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67405</guid>
                    </item>
				                    <item>
                        <title>RE: age birth のショートコードについて</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/age-birth-%e3%81%ae%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67401</link>
                        <pubDate>Thu, 12 Jan 2023 13:24:49 +0000</pubDate>
                        <description><![CDATA[修正しているうちにAkiraさんの書き込みが。Akiraさんの方法も試しましたが、どちらも正常に動作しているように思います。DateTimeImmutablなんてクラス初めて知りました。]]></description>
                        <content:encoded><![CDATA[<p>修正しているうちにAkiraさんの書き込みが。<br />Akiraさんの方法も試しましたが、どちらも正常に動作しているように思います。<br />DateTimeImmutablなんてクラス初めて知りました。</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>わいひら</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/age-birth-%e3%81%ae%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67401</guid>
                    </item>
				                    <item>
                        <title>RE: age birth のショートコードについて</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/age-birth-%e3%81%ae%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67399</link>
                        <pubDate>Thu, 12 Jan 2023 13:18:16 +0000</pubDate>
                        <description><![CDATA[お知らせいただきありがとうございます。chu-yaさんの修正案をそのまま使わせて頂いて修正させていただきました。ありがとうございます！-----------------------------------------------]]></description>
                        <content:encoded><![CDATA[<p>お知らせいただきありがとうございます。<br />chu-yaさんの修正案をそのまま使わせて頂いて修正させていただきました。ありがとうございます！<br />------------------------------------------------<br />https://github.com/xserver-inc/cocoon<br />開発中の最新ファイルをダウンロードする場合は、上記ページのダウンロードボタンからzipファイルをダウンロードしてください。<br />https://wp-cocoon.com/wp-content/uploads/2020/07/github-dl.png<br />WordPressでの手動アップデート方法はこちら<br />https://wp-cocoon.com/manual-update-of-cocoon-theme/<br />------------------------------------------------</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>わいひら</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/age-birth-%e3%81%ae%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67399</guid>
                    </item>
				                    <item>
                        <title>RE: age birth のショートコードについて</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/age-birth-%e3%81%ae%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67398</link>
                        <pubDate>Thu, 12 Jan 2023 13:16:28 +0000</pubDate>
                        <description><![CDATA[PHP を全く書いてないので練習としてやってみました。
//人間感覚の年の取得
if ( !function_exists( &#039;get_human_years_ago&#039; ) ):
function get_human_years_ago( $from, $unit = &#039;&#039; ) {
  $from = new DateTimeImmutable(date(&#039;Y-m-d&#039;...]]></description>
                        <content:encoded><![CDATA[<p>PHP を全く書いてないので練習としてやってみました。</p>
<pre contenteditable="false">//人間感覚の年の取得
if ( !function_exists( 'get_human_years_ago' ) ):
function get_human_years_ago( $from, $unit = '' ) {
  $from = new DateTimeImmutable(date('Y-m-d', $from));
  $to = new DateTimeImmutable('today');
  $diff = $from-&gt;diff($to);
  $year = $diff-&gt;format('%y'.$unit);
  return $year;
}
endif;</pre>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>Akira</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/age-birth-%e3%81%ae%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67398</guid>
                    </item>
				                    <item>
                        <title>RE: age birth のショートコードについて</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/age-birth-%e3%81%ae%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67397</link>
                        <pubDate>Thu, 12 Jan 2023 11:05:12 +0000</pubDate>
                        <description><![CDATA[先に言われる通り、うるう年分含まれ。
function get_human_years_ago( $from, $unit = &#039;&#039; ) {
  $to    = date(&#039;Ymd&#039;);
  $from  = date(&#039;Ymd&#039;, $from);
  $years = floor(($to - $from) / 10000);

  $since = sprin...]]></description>
                        <content:encoded><![CDATA[<p>先に言われる通り、うるう年分含まれ。</p>
<pre contenteditable="false">function get_human_years_ago( $from, $unit = '' ) {
  $to    = date('Ymd');
  $from  = date('Ymd', $from);
  $years = floor(($to - $from) / 10000);

  $since = sprintf('%s'.$unit, $years);
  return $since;
}</pre>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>大門未知子</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/age-birth-%e3%81%ae%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67397</guid>
                    </item>
				                    <item>
                        <title>RE: age birth のショートコードについて</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/age-birth-%e3%81%ae%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67396</link>
                        <pubDate>Thu, 12 Jan 2023 10:50:04 +0000</pubDate>
                        <description><![CDATA[先程の例では、次のうるう年が、2016年でしたので、それも試しました。2016年で、更に1日ずれますね。
 c3effee6fd4927c0f13ed81a68c2dcf2.JPG
 
応答日（応当日）を確認しないといけないのかもしれないです。]]></description>
                        <content:encoded><![CDATA[<p>先程の例では、次のうるう年が、2016年でしたので、それも試しました。<br />2016年で、更に1日ずれますね。</p>
<div id="wpfa-32983" class="wpforo-attached-file"><a class="wpforo-default-attachment" title="c3effee6fd4927c0f13ed81a68c2dcf2.JPG" href="//wp-cocoon.com/wp-content/uploads/wpforo/default_attachments/1673520604-c3effee6fd4927c0f13ed81a68c2dcf2.jpg" target="_blank" rel="noopener"><i class="fas fa-paperclip"></i> c3effee6fd4927c0f13ed81a68c2dcf2.JPG</a></div>
<div> </div>
<div>応答日（応当日）を確認しないといけないのかもしれないです。</div>
<div> </div>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>ｍｋ２</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/age-birth-%e3%81%ae%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67396</guid>
                    </item>
				                    <item>
                        <title>RE: age birth のショートコードについて</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/age-birth-%e3%81%ae%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67395</link>
                        <pubDate>Thu, 12 Jan 2023 10:23:54 +0000</pubDate>
                        <description><![CDATA[これって、うるう年じゃないでしょうか。
tonchinさんのあげてくださった例だと、確かに7日間ずれが生じています。
そこで、2022年、2021年、2020年と試してみました。
 c3effee6fd4927c0f13ed81a68c2dcf2.JPG
 
2022年、2021年は、1/12と1/13の間に境目があります。
ところが、2020年だと、1/13と1/...]]></description>
                        <content:encoded><![CDATA[<p>これって、うるう年じゃないでしょうか。</p>
<p><span>tonchinさんのあげてくださった例だと、確かに7日間ずれが生じています。</span></p>
<p>そこで、2022年、2021年、2020年と試してみました。</p>
<div id="wpfa-32982" class="wpforo-attached-file"><a class="wpforo-default-attachment" title="c3effee6fd4927c0f13ed81a68c2dcf2.JPG" href="//wp-cocoon.com/wp-content/uploads/wpforo/default_attachments/1673519285-c3effee6fd4927c0f13ed81a68c2dcf2.jpg" target="_blank" rel="noopener"><i class="fas fa-paperclip"></i> c3effee6fd4927c0f13ed81a68c2dcf2.JPG</a></div>
<div> </div>
<div>2022年、2021年は、1/12と1/13の間に境目があります。</div>
<div>ところが、2020年だと、1/13と1/14へと、1日ずれます。</div>
<div> </div>
<div>2020年は、うるう年だと思います。</div>
<div> </div>
<div>ショートコードは、birth(from)の日付と、現在日付のシリアル値を差し引いて、365で割っているイメージのように思います。</div>
<div> </div>
<div>そのため、うるう年分ずれが生じるのではないかという気がします。<br />（上記の確認結果からの、推測でしかないです）</div>
<div> </div>
<div>1995年以降の、うるう年は、以下の7回です。</div>
<ol>
<li>1996年</li>
<li>2000年</li>
<li>2004年</li>
<li>2008年</li>
<li>2012年</li>
<li>2016年</li>
<li>2020年</li>
</ol>
<p> </p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>ｍｋ２</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/age-birth-%e3%81%ae%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67395</guid>
                    </item>
				                    <item>
                        <title>age birth のショートコードについて</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/age-birth-%e3%81%ae%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67393</link>
                        <pubDate>Thu, 12 Jan 2023 09:14:53 +0000</pubDate>
                        <description><![CDATA[tonchin(@tonchin)さんより、雑談トピックに以下のようなお問い合わせがありました。
カテゴリー違いかと思いますので、こちらに転記いたします。ご回答等ございましたら、こちらのトピックににお願い致します。
以下、お問い合わせ内容です。

テーマを使わせていただき、いつもありがとうございます。2023年1月12日にショートコード　　を書くと28歳と表示され、ショ...]]></description>
                        <content:encoded><![CDATA[<p>tonchin<span>(@tonchin)</span>さんより、雑談トピックに以下のようなお問い合わせがありました。</p>
<p>カテゴリー違いかと思いますので、こちらに転記いたします。<br />ご回答等ございましたら、こちらのトピックににお願い致します。</p>
<p>https://wp-cocoon.com/community/postid/67392/</p>
<p>以下、お問い合わせ内容です。</p>
<hr />
<p>テーマを使わせていただき、いつもありがとうございます。<br /><br />2023年1月12日に<br /><br />ショートコード　　を書くと28歳と表示され、<br /><br />ショートコード　　を書くと27歳と表示されます<br /><br /><br />このような場合、どういった不具合が考えられますか？？　ご教示ください</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>ｍｋ２</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/age-birth-%e3%81%ae%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67393</guid>
                    </item>
							        </channel>
        </rss>
		