![]() |
![]()
| ![]() |
![]()
NAMEDateTime::Format::RSS - Format DateTime For RSS SYNOPSISuse DateTime::Format::RSS; my $fmt = DateTime::Format::RSS->new; my $dt = $fmt->parse_datetime($str); my $str = $fmt->format_datetime($dt); my $fmt = DateTime::Format::RSS->new(version => 2.0); DESCRIPTIONDateTime::Format::RSS attempts to deal with those nasty RSS date/time strings used in fields (such as <issued>, <modified>, <pubDate>) that never ever seems to be right. METHODSnewCreates a new DateTime::Format::RSS object parse_datetime SCALARInternally, it just attempts to parse the string using DateTime::Format::Mail, DateTime::Format::ISO8601, and then finally with DateTime::Format::DateParse. format_datetime OBJECTFormats the given DateTime object using DateTime::Format::ISO8601 CREDITSThis module was based on Plagger's LiberalDateTime DateTime parser. SEE ALSODateTime::Format::Mail DateTime::Format::IOS8601 DateTime::Format::DateParse AUTHORSCopyright (c) 2006 Daisuke Maki <daisuke@endeworks.jp> All rights reserved. Tatsuhiko Miyagawa <miyagawa@bulknews.net> All rights reserved. LICENSEThis library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
|