<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>clicktx::Tech::Memo &#187; モジュール</title>
	<atom:link href="http://perl.no-tubo.net/tag/%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%ab/feed/" rel="self" type="application/rss+xml" />
	<link>http://perl.no-tubo.net</link>
	<description>perl、 MySQL、オープンソース系、ウェブ系ネタ。なぜか鯖管メモがほとんどを占めている...</description>
	<lastBuildDate>Mon, 23 Jan 2012 10:51:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://perl.no-tubo.net/tag/%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%ab/feed/" />
		<item>
		<title>perlで日付算出にはDate::Calc 日数計算や前月1日〜月末など</title>
		<link>http://perl.no-tubo.net/2011/01/21/perl%e3%81%a7%e6%97%a5%e4%bb%98%e7%ae%97%e5%87%ba%e3%81%ab%e3%81%afdatecalc-%e6%97%a5%e6%95%b0%e8%a8%88%e7%ae%97%e3%82%84%e5%89%8d%e6%9c%881%e6%97%a5%e3%80%9c%e6%9c%88%e6%9c%ab%e3%81%aa%e3%81%a9/</link>
		<comments>http://perl.no-tubo.net/2011/01/21/perl%e3%81%a7%e6%97%a5%e4%bb%98%e7%ae%97%e5%87%ba%e3%81%ab%e3%81%afdatecalc-%e6%97%a5%e6%95%b0%e8%a8%88%e7%ae%97%e3%82%84%e5%89%8d%e6%9c%881%e6%97%a5%e3%80%9c%e6%9c%88%e6%9c%ab%e3%81%aa%e3%81%a9/#comments</comments>
		<pubDate>Fri, 21 Jan 2011 02:35:15 +0000</pubDate>
		<dc:creator>clicktx</dc:creator>
				<category><![CDATA[perlモジュール]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[モジュール]]></category>
		<category><![CDATA[日付]]></category>

		<guid isPermaLink="false">http://perl.no-tubo.net/?p=1291</guid>
		<description><![CDATA[&#68;&#97;&#116;&#101;::&#67;&#97;&#108;&#99; &#8211; search.cpan.org
基本
use Date::Calc qw(:all);

# 今日
my ($y [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://search.cpan.org/~stbey/Date-Calc-6.3/lib/Date/Calc.pod">&#68;&#97;&#116;&#101;::&#67;&#97;&#108;&#99; &#8211; search.cpan.org</a></p>
<h3>基本</h3>
<pre>use Date::Calc qw(:all);

<span style="color: #ff9900;"># 今日</span>
my ($yyyy,$mm,$dd) = Today();
print "$yyyy/$mm/$dd"; 

<span style="color: #ff9900;"># 実行結果</span>
2011/1/21</pre>
<h3>昨日の日付（日付計算）</h3>
<pre>use Date::Calc;

my ($yyyy,$mm,$dd) = Date::Calc::Today();
@y = Date::Calc::Add_Delta_Days($yyyy, $mm, $dd, -1);
my $yesterday= join('/',@y);

print "昨日=$yesterday\n";

<span style="color: #ff9900;"># 実行結果</span>
昨日=2011/1/20</pre>
<p><em>Date::Calc::Add_Delta_Days($yyyy, $mm, $dd, -1);</em>の-1を-7にすれば7日前、5にすれば5日後となる。</p>
<h3>前月1日と月末を算出</h3>
<pre>use Date::Calc;

@y = Date::Calc::Add_Delta_YMD($yyyy, $mm, 1, 0 ,-1, 0); <span style="color: #ff9900;">#前月1日</span>
$start = join('/',@y);
@y = Date::Calc::Add_Delta_YMD($yyyy, $mm, 1, 0, 0, -1); <span style="color: #ff9900;">#前月末日</span>
$end = join('/',@y);

print "前月1日=$start\n";
print "前月末日=$end\n";

<span style="color: #ff9900;"># 実行結果</span>
前月1日=2010/12/1
前月末日=2010/12/31</pre>
<p><a href="http://www.ksknet.net/perl/datecalc.html">Date::Calc &#8211; 日付の計算</a>にもサンプルが。<br />
日付の不正を確認、指定した月の日数を取得、タイムスタンプを取得など。</p>
]]></content:encoded>
			<wfw:commentRss>http://perl.no-tubo.net/2011/01/21/perl%e3%81%a7%e6%97%a5%e4%bb%98%e7%ae%97%e5%87%ba%e3%81%ab%e3%81%afdatecalc-%e6%97%a5%e6%95%b0%e8%a8%88%e7%ae%97%e3%82%84%e5%89%8d%e6%9c%881%e6%97%a5%e3%80%9c%e6%9c%88%e6%9c%ab%e3%81%aa%e3%81%a9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://perl.no-tubo.net/2011/01/21/perl%e3%81%a7%e6%97%a5%e4%bb%98%e7%ae%97%e5%87%ba%e3%81%ab%e3%81%afdatecalc-%e6%97%a5%e6%95%b0%e8%a8%88%e7%ae%97%e3%82%84%e5%89%8d%e6%9c%881%e6%97%a5%e3%80%9c%e6%9c%88%e6%9c%ab%e3%81%aa%e3%81%a9/" />
	</item>
		<item>
		<title>OpenIDを使う為のPerlモジュールをインストール</title>
		<link>http://perl.no-tubo.net/2009/12/24/openid%e3%82%92%e4%bd%bf%e3%81%86%e7%82%ba%e3%81%aeperl%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%ab%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/</link>
		<comments>http://perl.no-tubo.net/2009/12/24/openid%e3%82%92%e4%bd%bf%e3%81%86%e7%82%ba%e3%81%aeperl%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%ab%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 05:37:08 +0000</pubDate>
		<dc:creator>clicktx</dc:creator>
				<category><![CDATA[perlモジュール]]></category>
		<category><![CDATA[OpenID]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[モジュール]]></category>

		<guid isPermaLink="false">http://perl.no-tubo.net/?p=302</guid>
		<description><![CDATA[以下の順でインストールするとうまくいくらしい。
Math::BigInt
Math::BigInt::GMP
Crypt::DH
Net::OpenID::Consumer
Net::OpenID::Consumerをイ [...]]]></description>
			<content:encoded><![CDATA[<p>以下の順でインストールするとうまくいくらしい。</p>
<p>Math::BigInt<br />
Math::BigInt::GMP<br />
Crypt::DH<br />
Net::OpenID::Consumer</p>
<p>Net::OpenID::Consumerをインストール時にXML::Simpleが足りなかったので先にインストールした。</p>
<p>参考：<a href="http://www.atmarkit.co.jp/fsecurity/rensai/openid03/openid01.html">http://www.atmarkit.co.jp/fsecurity/rensai/openid03/openid01.html</a></p>
<p>関連：<br />
Net::OpenID::Consumer::Lite<br />
<a href="http://d.hatena.ne.jp/tokuhirom/20081129/1227923235">http://d.hatena.ne.jp/tokuhirom/20081129/1227923235</a><br />
用途を限定的にした OpenID 認証機構</p>
<p>Crypt::DH::GMP<br />
<a href="http://mt.endeworks.jp/d-6/2008/04/crypt-dh-gmp.html">http://mt.endeworks.jp/d-6/2008/04/crypt-dh-gmp.html</a><br />
Crypt::DH の処理が遅いため libgmp を使って高速化</p>
]]></content:encoded>
			<wfw:commentRss>http://perl.no-tubo.net/2009/12/24/openid%e3%82%92%e4%bd%bf%e3%81%86%e7%82%ba%e3%81%aeperl%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%ab%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://perl.no-tubo.net/2009/12/24/openid%e3%82%92%e4%bd%bf%e3%81%86%e7%82%ba%e3%81%aeperl%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%ab%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/" />
	</item>
	</channel>
</rss>

