File Coverage

blib/lib/DateTime/Format/Epoch/MacOS.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::MacOS;
2            
3 2     2   130184 use strict;
  2         6  
  2         72  
4            
5 2     2   9 use vars qw($VERSION @ISA);
  2         3  
  2         119  
6            
7             $VERSION = '0.13';
8            
9 2     2   669 use DateTime;
  2         92498  
  2         48  
10 2     2   806 use DateTime::Format::Epoch;
  2         4  
  2         139  
11            
12             @ISA = qw/DateTime::Format::Epoch/;
13            
14             my $epoch = DateTime->new( year => 1904, month => 1, day => 1,
15             time_zone => 'floating' );
16            
17             sub new {
18 10     10 1 19 my $class = shift;
19            
20 10         35 return $class->SUPER::new( epoch => $epoch,
21             unit => 'seconds',
22             type => 'int',
23             local_epoch => 1,
24             skip_leap_seconds => 1 );
25             }
26            
27             1;
28             __END__