DateTime::Format::Duration::XSD
use DateTime::Format::Duration::XSD; my $dfdx = DateTime::Format::Duration::XSD->new(); my $duration_object = $dfdx->parse_duration('-P1Y2M3DT1H2M3.33S'); my $xsd_duration = $dfdx->format_duration($duration_object);
DateTime::Format::Duration::XSD - Formats and parses DateTime::Duration according to xs:duration
DateTime, DateTime::Duration, DateTime::Format::XSD
The XML Schema speficitation
Smal D A, <mialinx@gmail.com>
Copyright (C) 2009 by Smal D A
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install DateTime::Format::Duration::XSD, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DateTime::Format::Duration::XSD
CPAN shell
perl -MCPAN -e shell install DateTime::Format::Duration::XSD
For more information on module installation, please visit the detailed CPAN module installation guide.