NAME
DateTime::Format::RFC3501 - Parse and format RFC3501 datetime strings
VERSION
version 0.03
SYNOPSIS
use DateTime::Format::RFC3501;
my $f = DateTime::Format::RFC3501->new();
my $dt = $f->parse_datetime( ' 1-Jul-2002 13:50:05 +0200' );
# 1-Jul-2002 13:50:05 +0200
print $f->format_datetime($dt);
DESCRIPTION
This module understands the RFC3501 date-time format, defined at http://tools.ietf.org/html/rfc3501.
It can be used to parse this format in order to create the appropriate objects.
METHODS
new()
Returns a new RFC3501 parser object.
parse_datetime($string)
Given a RFC3501 date-time 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::Strptime.
format_datetime($datetime)
Given a DateTime object, this methods returns a RFC3501 date-time string.
CREDITS
This module was heavily inspired by DateTime::Format::RFC3339.
SEE ALSO
http://tools.ietf.org/html/rfc3501, "Internet Message Access Protocol - version 4rev1"
BUGS
Please report any bugs or feature requests through the web interface at https://github.com/alexm/DateTime-Format-RFC3501/issues. 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::RFC3501
AUTHOR
Alex Muntada <alexm@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011-2021 by Alex Muntada.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.