File Coverage

blib/lib/DateTimeX/Immutable.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package DateTimeX::Immutable;
2              
3             # ABSTRACT: An immutable subclass of DateTime
4              
5 2     2   43254 use strict;
  2         5  
  2         76  
6 2     2   9 use warnings;
  2         3  
  2         46  
7 2     2   7 use base 'DateTime';
  2         6  
  2         732  
8             use Role::Tiny::With;
9             use namespace::autoclean;
10              
11             our $VERSION = '0.35';
12              
13             with 'DateTimeX::Role::Immutable';
14              
15             sub st { return shift->strftime("%FT%T%Z"); }
16             sub dt { return shift->st; }
17              
18             1;
19              
20             __END__