File Coverage

blib/lib/DateTime/Format/Epoch/DotNet.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::DotNet;
2            
3 2     2   120785 use strict;
  2         3  
  2         59  
4            
5 2     2   7 use vars qw($VERSION @ISA);
  2         2  
  2         100  
6            
7             $VERSION = '0.13';
8            
9 2     2   715 use DateTime;
  2         103272  
  2         41  
10 2     2   638 use DateTime::Format::Epoch;
  2         5  
  2         150  
11            
12             @ISA = qw/DateTime::Format::Epoch/;
13            
14             my $epoch = DateTime->new( year => 1, month => 1, day => 1,
15             time_zone => 'floating' );
16            
17             sub new {
18 5     5 1 14 my $class = shift;
19            
20 5         22 return $class->SUPER::new( epoch => $epoch,
21             unit => 1e7,
22             type => 'bigint',
23             local_epoch => 1,
24             skip_leap_seconds => 1 );
25             }
26            
27             1;
28             __END__