GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
XML::Feed::Util(3) User Contributed Perl Documentation XML::Feed::Util(3)

XML::Feed::Util - Utility functions

    use XML::Feed::Util qw(
        format_w3cdtf
        parse_datetime
        parse_mail_date
        parse_w3cdtf_date
    );
    use DateTime;
    
    print format_w3cdtf(DateTime->now);
    
    my $dt;
    $dt = parse_datetime('January 8, 1999');
    $dt = parse_mail_date('Fri, 23 Nov 2001 21:57:24 -0600');
    $dt = parse_w3cdtf_date('2003-02-15T13:50:05-05:00');

Common utility or helper functions.

Convert DateTime object to W3CDTF format string. Uses default timezone "Z" for "floating" DateTime.

Parse any date string using DateTime::Format::ISO8601, DateTime::Format::Flexible or DateTime::Format::Natural.

Returns DateTime object or undef.

Parse date in RFC2822/822 format using DateTime::Format::Mail. Fallback to "parse_datetime()" for other formats.

Returns DateTime object or undef.

Parse date W3CDTF format using DateTime::Format::W3CDTF. Fallback to "parse_datetime()" for other formats.

Returns DateTime object or undef.

Please see the XML::Feed manpage for author, copyright, and license information.
2021-05-25 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.