line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DateTime::Format::Epoch::NTP; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
291
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
23
|
|
4
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
24
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
3
|
use vars qw($VERSION @ISA); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
36
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
$VERSION = '0.14'; |
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
3
|
use DateTime; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
14
|
|
11
|
1
|
|
|
1
|
|
3
|
use DateTime::Format::Epoch; |
|
1
|
|
|
|
|
0
|
|
|
1
|
|
|
|
|
63
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
@ISA = qw/DateTime::Format::Epoch/; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
my $epoch = DateTime->new( year => 1900, month => 1, day => 1, |
16
|
|
|
|
|
|
|
time_zone => 'UTC' ); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub new { |
19
|
3
|
|
|
3
|
1
|
3
|
my $class = shift; |
20
|
|
|
|
|
|
|
|
21
|
3
|
|
|
|
|
12
|
return $class->SUPER::new( epoch => $epoch, |
22
|
|
|
|
|
|
|
unit => 'seconds', |
23
|
|
|
|
|
|
|
type => 'int', |
24
|
|
|
|
|
|
|
skip_leap_seconds => 1 ); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
__END__ |