« 「RSS拡張の試み」について | メイン | 「RSS拡張の試み」についての続き »

October 25, 2003

Date&Time 表現

今まで自前で W3CDTFISO8601のサブセット)(RSS1.0) とか RFC822RSS2.0
とかをパース・変換するルーチンを書いていたが、LWPに付属しているHTTP::Dateドキュメント和訳)は同じことをやってくれるらしい。機会(不具合報告とか)があれば書き直そう。
ちなみに、
Time::ZoneTime::Local(これはデフォルトであるはず) が必要。

メモ : 現在時刻をW3CDTF で出力する方法
----------------------------------------------------------
use strict;
use HTTP::Date qw(time2str str2time parse_date time2iso time2isoz);
use Time::Zone;

my $iso_date = &time2iso;
$iso_date =~ s/ /T/;
my $offset = &tz_offset;
my $tz = sprintf("%02d:00", $offset / 60 / 60);
$tz = '+' . $tz if ($offset >= 0);
print "$iso_date$tz\n";
----------------------------------------------------------

投稿者 msano : October 25, 2003 05:00 PM

トラックバック

このエントリーのトラックバックURL:
http://www.semblog.org/mt3/mt-tb.cgi/105

このリストは、次のエントリーを参照しています: Date&Time 表現:

» party poker from party poker
Please check out the pages dedicated to [続きを読む]

トラックバック時刻: April 9, 2005 05:22 AM

» empire poker from empire poker
In your free time, check some relevant pages about [続きを読む]

トラックバック時刻: April 9, 2005 07:28 AM

» party poker from party poker
Please visit some helpful info dedicated to [続きを読む]

トラックバック時刻: April 9, 2005 09:31 AM

» poker from poker
You are invited to check some helpful info about [続きを読む]

トラックバック時刻: April 9, 2005 12:41 PM

» pacific poker from pacific poker
You may find it interesting to check out the sites about [続きを読む]

トラックバック時刻: April 9, 2005 01:40 PM

» online poker from online poker
Please visit the pages about par... [続きを読む]

トラックバック時刻: April 9, 2005 04:35 PM

» pacific poker from pacific poker
You are invited to check the sites in the field of [続きを読む]

トラックバック時刻: April 9, 2005 05:51 PM

» online poker from online poker
You may find it interesting to check some helpful info in the field of [続きを読む]

トラックバック時刻: April 12, 2005 06:36 AM

» texas holdem from texas holdem
You can also check the sites about [続きを読む]

トラックバック時刻: April 12, 2005 10:45 AM

» mortgage pitfall reverse from mortgage pitfall reverse
In your free time, check out the sites dedicated to [続きを読む]

トラックバック時刻: April 13, 2005 09:36 PM

» card poker from card poker
You are invited to check the sites about [続きを読む]

トラックバック時刻: April 15, 2005 04:43 AM

» online poker from online poker
Please check the pages in the field of [続きを読む]

トラックバック時刻: April 16, 2005 03:15 PM

» online casino from online casino
You may find it interesting to check some information in the field of [続きを読む]

トラックバック時刻: April 18, 2005 02:31 AM

» online gambling from online gambling
Please check out the sites about [続きを読む]

トラックバック時刻: April 18, 2005 07:32 AM

» online gambling from online gambling
Please visit some relevant pages about [続きを読む]

トラックバック時刻: April 18, 2005 09:21 AM

» online pharmacy from online pharmacy
You can also check out some information dedicated to [続きを読む]

トラックバック時刻: April 19, 2005 10:36 PM

» amitriptyline from amitriptyline
In your free time, check out some information about [続きを読む]

トラックバック時刻: April 21, 2005 10:24 AM

» poker holdem contest from poker holdem contest
You are invited to check out some information about [続きを読む]

トラックバック時刻: April 24, 2005 06:20 AM

» freeware poker seven cards online from freeware poker seven cards online
You may find it interesting to check some helpful info about [続きを読む]

トラックバック時刻: April 26, 2005 12:05 AM

» poker 7 card online free from poker 7 card online free
Please visit the sites about [続きを読む]

トラックバック時刻: April 27, 2005 10:42 AM

» how to play stud poker from how to play stud poker
You may find it interesting to check the sites dedicated to [続きを読む]

トラックバック時刻: April 28, 2005 05:48 PM

» poker games from poker games
Please visit the sites about [続きを読む]

トラックバック時刻: April 30, 2005 10:09 AM

» poker rooms from poker rooms
Please check the sites dedicated to [続きを読む]

トラックバック時刻: May 2, 2005 06:47 AM

» texas holdem from texas holdem
Please visit the sites about [続きを読む]

トラックバック時刻: May 6, 2005 08:11 PM

» free slots from free slots
You may find it interesting to check out some helpful info in the field of [続きを読む]

トラックバック時刻: May 15, 2005 08:36 PM

» online poker from online poker
You can also check the sites dedicated to [続きを読む]

トラックバック時刻: May 24, 2005 06:53 PM

» texas holdem from texas holdem
In your free time, check out the sites about [続きを読む]

トラックバック時刻: May 27, 2005 06:42 AM

» loans from loans
Please check the sites about [続きを読む]

トラックバック時刻: May 29, 2005 09:16 PM

» online poker from online poker
You are invited to check the pages in the field of [続きを読む]

トラックバック時刻: June 1, 2005 08:15 AM

» online casino from online casino
Please check the pages about [続きを読む]

トラックバック時刻: June 3, 2005 04:45 PM

» online casino from online casino
Please check the pages about [続きを読む]

トラックバック時刻: June 3, 2005 04:46 PM

» online casino from online casino
You can also check out some relevant pages dedicated to [続きを読む]

トラックバック時刻: June 7, 2005 01:16 AM

» online casinos from online casinos
Please visit some helpful info about [続きを読む]

トラックバック時刻: June 9, 2005 03:46 AM

» poker rooms from poker rooms
In your free time, check some helpful info about [続きを読む]

トラックバック時刻: June 9, 2005 12:06 PM

» texas hold em from texas hold em
In your free time, check out the pages in the field of [続きを読む]

トラックバック時刻: June 9, 2005 09:31 PM

» online casino from online casino
You are invited to check out some helpful info about [続きを読む]

トラックバック時刻: June 10, 2005 06:43 AM

» cheap phentermine from cheap phentermine
Please check the sites dedicated to [続きを読む]

トラックバック時刻: June 11, 2005 10:50 AM

» online pharmacy from online pharmacy
Please visit some relevant pages about [続きを読む]

トラックバック時刻: June 11, 2005 07:30 PM

» online poker from online poker
You may find it interesting to visit some helpful info about [続きを読む]

トラックバック時刻: June 12, 2005 05:58 AM

» party poker from party poker
You can also check the pages about [続きを読む]

トラックバック時刻: June 13, 2005 12:04 AM

» online casino from online casino
You may find it interesting to check out some helpful info about [続きを読む]

トラックバック時刻: June 13, 2005 10:02 AM

» slot machines from slot machines
You may find it interesting to check the sites in the field of [続きを読む]

トラックバック時刻: June 13, 2005 07:58 PM

» online casinos from online casinos
In your free time, check out the sites dedicated to [続きを読む]

トラックバック時刻: June 14, 2005 11:37 PM

» buy viagra from buy viagra
In your free time, visit some helpful info about [続きを読む]

トラックバック時刻: June 15, 2005 08:17 AM

» home loans from home loans
You can also visit some information dedicated to [続きを読む]

トラックバック時刻: June 15, 2005 06:16 PM

» free poker chip set from free poker chip set
In your free time, check some relevant pages in the field of [続きを読む]

トラックバック時刻: June 16, 2005 10:10 AM

» holdem from holdem
In your free time, check the sites about [続きを読む]

トラックバック時刻: June 17, 2005 04:13 AM

» jack black from jack black
Please check out the sites about [続きを読む]

トラックバック時刻: June 17, 2005 01:44 PM

» online casinos from online casinos
Please check some relevant information on [続きを読む]

トラックバック時刻: June 17, 2005 11:03 PM

» free strip blackjack from free strip blackjack
Take your time to visit some helpful info dedicated to [続きを読む]

トラックバック時刻: June 18, 2005 09:40 AM

» free texas hold em from free texas hold em
Please check out some relevant information dedicated to [続きを読む]

トラックバック時刻: June 18, 2005 07:26 PM

» texas holdem from texas holdem
Please visit the sites on te... [続きを読む]

トラックバック時刻: June 20, 2005 10:09 PM

コメント

werasedr

投稿者 penis enlargement pills : July 11, 2004 01:23 AM

werasedr

投稿者 jenna jameson : July 31, 2004 05:01 AM

werasedr

投稿者 veronica zemanova : August 1, 2004 03:47 AM

Your site is very good.

business grants

投稿者 business grants : August 18, 2004 11:51 AM

the hottest live web cams

投稿者 live web cams : August 22, 2004 01:39 AM

コメントしてください




保存しますか?