We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f68bd32 commit 97198c5Copy full SHA for 97198c5
lib/DateTime/Format/XSD.pm
@@ -1,18 +1,19 @@
1
-{ package DateTime::Format::XSD;
2
-
3
- use strict;
4
- use warnings;
5
- use base qw(DateTime::Format::ISO8601);
6
- our $VERSION = '0.2';
7
8
- sub format_datetime {
9
- my ($format, $date) = @_;
10
- my $out = $date->strftime('%FT%T%z');
11
- $out =~ s/(\d\d)$/:$1/;
12
- return $out;
13
- }
+package DateTime::Format::XSD;
+# ABSTRACT: Format DateTime according to xsd:dateTime
+
+use strict;
+use warnings;
+use base qw(DateTime::Format::ISO8601);
+our $VERSION = '0.2';
+sub format_datetime {
+ my ($format, $date) = @_;
+ my $out = $date->strftime('%FT%T%z');
+ $out =~ s/(\d\d)$/:$1/;
+ return $out;
14
};
15
1;
16
+__END__
17
18
=head1 SYNOPSIS
19
0 commit comments