line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DateTime::Format::Epoch::MJD;
|
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
367
|
use strict;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
30
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
4
|
use vars qw($VERSION @ISA);
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
41
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
$VERSION = '0.13';
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
3
|
use DateTime;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
12
|
|
10
|
1
|
|
|
1
|
|
3
|
use DateTime::Format::Epoch;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
66
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
@ISA = qw/DateTime::Format::Epoch/;
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
my $epoch = DateTime->new( year => 1858, month => 11, day => 17 );
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub new {
|
17
|
3
|
|
|
3
|
1
|
3
|
my $class = shift;
|
18
|
|
|
|
|
|
|
|
19
|
3
|
|
|
|
|
11
|
return $class->SUPER::new( epoch => $epoch,
|
20
|
|
|
|
|
|
|
unit => 1/86400,
|
21
|
|
|
|
|
|
|
type => 'float',
|
22
|
|
|
|
|
|
|
skip_leap_seconds => 1 );
|
23
|
|
|
|
|
|
|
}
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1;
|
26
|
|
|
|
|
|
|
__END__
|