File Coverage

blib/lib/DateTime/Format/Epoch/Lilian.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 20 20 100.0


line stmt bran cond sub pod time code
1             package DateTime::Format::Epoch::Lilian;
2            
3 1     1   289 use strict;
  1         1  
  1         26  
4            
5 1     1   2 use vars qw($VERSION @ISA);
  1         1  
  1         37  
6            
7             $VERSION = '0.13';
8            
9 1     1   3 use DateTime;
  1         1  
  1         17  
10 1     1   3 use DateTime::Format::Epoch;
  1         1  
  1         62  
11            
12             @ISA = qw/DateTime::Format::Epoch/;
13            
14             my $epoch = DateTime->new( year => 1582, month => 10, day => 14 );
15            
16             sub new {
17 3     3 1 3 my $class = shift;
18            
19 3         11 return $class->SUPER::new( epoch => $epoch,
20             unit => 1/86400,
21             type => 'int',
22             skip_leap_seconds => 1 );
23             }
24            
25             1;
26             __END__