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   139585 use strict;
  2         3  
  2         65  
4            
5 2     2   7 use vars qw($VERSION @ISA);
  2         2  
  2         106  
6            
7             $VERSION = '0.13';
8            
9 2     2   706 use DateTime;
  2         95677  
  2         50  
10 2     2   629 use DateTime::Format::Epoch;
  2         4  
  2         136  
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         36 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__