Epoch/NTP.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 100% 28 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Epoch/MacOS.pm ↑ Summary Epoch/RJD.pm »
1 package DateTime::Format::Epoch::NTP;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use vars qw($VERSION @ISA);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 $VERSION = '0.14';
9  
10 1 ▶use DateTime;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use DateTime::Format::Epoch;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 1 @ISA = qw/DateTime::Format::Epoch/;
14  
15 1 my $epoch = DateTime->new( year => 1900, month => 1, day => 1,
16 time_zone => 'UTC' );
17  
18 3 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
19 3 my $class = shift;
20  
21 3 return $class->SUPER::new( epoch => $epoch,
22 unit => 'seconds',
23 type => 'int',
24 skip_leap_seconds => 1 );
25 }
26  
27 1 1;
28 __END__
« Epoch/MacOS.pm ↑ Summary Epoch/RJD.pm »