File Coverage

blib/lib/DateTime/Format/Epoch/ActiveDirectory.pm
Criterion Covered Total %
statement 12 14 85.7
branch n/a
condition n/a
subroutine 4 5 80.0
pod 1 1 100.0
total 17 20 85.0


line stmt bran cond sub pod time code
1             package DateTime::Format::Epoch::ActiveDirectory;
2            
3 1     1   11826 use strict;
  1         2  
  1         28  
4            
5 1     1   3 use vars qw($VERSION @ISA);
  1         1  
  1         48  
6            
7             $VERSION = '0.13';
8            
9 1     1   621 use DateTime;
  1         86095  
  1         30  
10 1     1   354 use DateTime::Format::Epoch;
  1         2  
  1         76  
11            
12             @ISA = qw/DateTime::Format::Epoch/;
13            
14             my $epoch = DateTime->new( year => 1601, month => 1, day => 1,
15             time_zone => 'floating' );
16            
17             sub new {
18 0     0 1   my $class = shift;
19            
20 0           return $class->SUPER::new( epoch => $epoch,
21             unit => 1e7,
22             type => 'bigint',
23             local_epoch => undef,
24             skip_leap_seconds => 1 );
25             }
26            
27             1;
28             __END__