Skip to content

Commit 97198c5

Browse files
committed
Remove braces to silence perl critic
1 parent f68bd32 commit 97198c5

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

lib/DateTime/Format/XSD.pm

+14-13
Original file line numberDiff line numberDiff line change
@@ -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-
}
1+
package DateTime::Format::XSD;
2+
# ABSTRACT: Format DateTime according to xsd:dateTime
3+
4+
use strict;
5+
use warnings;
6+
use base qw(DateTime::Format::ISO8601);
7+
our $VERSION = '0.2';
8+
9+
sub format_datetime {
10+
my ($format, $date) = @_;
11+
my $out = $date->strftime('%FT%T%z');
12+
$out =~ s/(\d\d)$/:$1/;
13+
return $out;
1414
};
1515
1;
16+
__END__
1617
1718
=head1 SYNOPSIS
1819

0 commit comments

Comments
 (0)