DateTime::Format::XSD - Format DateTime according to xsd:dateTime
version 0.3
my $str = DateTime::Format::XSD->format_datetime($dt);
XML Schema defines a usage profile which is a subset of the ISO8601 profile. This profile defines that the following is the only possible representation for a dateTime, despite all other options ISO provides.
YYYY-MM-DD"T"HH:MI:SS(Z|[+-]zh:zm)
This module is a subclass of DateTime::Format::ISO8601, therefore it will be able to parse all other ISO options, but will only format it in this exact spec.
DateTime, DateTime::Format::ISO8601, The XML Schema speficitation.
Please submit all bugs regarding DateTime::Format::XSD to bug-datetime-format-xsd@rt.cpan.org
DateTime::Format::XSD
bug-datetime-format-xsd@rt.cpan.org
This software is copyright (c) 2004 by Daniel Ruoso.
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
Daniel Ruoso <daniel@ruoso.com>
Timothy Legge <timlegge@gmail.com>
This software is copyright (c) 2021 by Daniel Ruoso.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install DateTime::Format::XSD, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DateTime::Format::XSD
CPAN shell
perl -MCPAN -e shell install DateTime::Format::XSD
For more information on module installation, please visit the detailed CPAN module installation guide.