The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

DateTime::Format::RFC3339 - Parse and format RFC3339 datetime strings

VERSION

Version 1.0.0

SYNOPSIS

    use DateTime::Format::RFC3339;

    my $f = DateTime::Format::RFC3339->new();
    my $dt = $f->parse_datetime( '2002-07-01T13:50:05Z' );

    # 2002-07-01T13:50:05Z
    $f->format_datetime($dt);

DESCRIPTION

This module understands the RFC3339 date/time format, an ISO 8601 profile, defined at http://www.ietf.org/rfc/rfc3339.txt.

It can be used to parse these formats in order to create the appropriate objects.

METHODS

parse_datetime($string)

Given a RFC3339 datetime string, this method will return a new DateTime object.

If given an improperly formatted string, this method will croak.

For a more flexible parser, see DateTime::Format::ISO8601.

format_datetime($datetime)

Given a DateTime object, this methods returns a RFC3339 datetime string.

For simplicity, the datetime will be converted to UTC first.

SEE ALSO

AUTHOR

Eric Brine, <ikegami@adaelis.com>

BUGS

Please report any bugs or feature requests to bug-datetime-format-rfc3339 at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=DateTime-Format-RFC3339. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc DateTime::Format::RFC3339

You can also look for information at:

AUTHOR

Eric Brine, <ikegami@adaelis.com>

COPYRIGHT & LICENSE

Public domain. No rights reserved.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 161:

You forgot a '=back' before '=head1'