Format datetime according to xsd:datetime
my $str = DateTime::Format::XSD->format_datetime($dt);
\s-1XML\s0 Schema defines a usage profile which is a subset of the \s-1ISO8601\s0 profile. This profile defines that the following is the only possible representation for a dateTime, despite all other options \s-1ISO\s0 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 \s-1ISO\s0 options, but will only format it in this exact spec.
DateTime, DateTime::Format::ISO8601, The \s-1XML\s0 Schema speficitation.
Daniel Ruoso \*(C`[email protected]\*(C'
Please submit all bugs regarding \*(C`DateTime::Format::XSD\*(C' to \*(C`[email protected]\*(C'
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.