line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
############################################################################### |
3
|
|
|
|
|
|
|
## ## |
4
|
|
|
|
|
|
|
## Copyright (c) 1995 - 2015 by Steffen Beyer. ## |
5
|
|
|
|
|
|
|
## All rights reserved. ## |
6
|
|
|
|
|
|
|
## ## |
7
|
|
|
|
|
|
|
## This package is free software; you can redistribute it ## |
8
|
|
|
|
|
|
|
## and/or modify it under the same terms as Perl itself. ## |
9
|
|
|
|
|
|
|
## ## |
10
|
|
|
|
|
|
|
############################################################################### |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
package Date::Calc; |
13
|
|
|
|
|
|
|
|
14
|
50
|
|
|
50
|
|
40731
|
use strict; |
|
50
|
|
|
|
|
76
|
|
|
50
|
|
|
|
|
1867
|
|
15
|
50
|
|
|
50
|
|
195
|
use vars qw($XS_OK $XS_DISABLE @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $VERSION); |
|
50
|
|
|
|
|
56
|
|
|
50
|
|
|
|
|
13423
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
BEGIN # Re-export imports from Date::Calc::XS or Date::Calc::PP: |
18
|
|
|
|
|
|
|
{ |
19
|
50
|
|
|
50
|
|
270
|
require Exporter; |
20
|
50
|
|
|
|
|
493
|
@ISA = qw(Exporter); |
21
|
50
|
|
|
|
|
106
|
$XS_OK = 0; |
22
|
50
|
50
|
33
|
|
|
377
|
unless ($XS_DISABLE and $XS_DISABLE) # prevent warning "used only once" |
23
|
|
|
|
|
|
|
{ |
24
|
|
|
|
|
|
|
eval |
25
|
0
|
|
|
|
|
0
|
{ |
26
|
0
|
|
|
|
|
0
|
require Date::Calc::XS; |
27
|
0
|
|
|
|
|
0
|
@EXPORT = (@Date::Calc::XS::EXPORT); |
28
|
0
|
|
|
|
|
0
|
@EXPORT_OK = (@Date::Calc::XS::EXPORT_OK); |
29
|
0
|
|
|
|
|
0
|
%EXPORT_TAGS = (all => [@EXPORT_OK]); |
30
|
0
|
|
|
|
|
0
|
Date::Calc::XS->import(@EXPORT,@EXPORT_OK); |
31
|
|
|
|
|
|
|
}; |
32
|
0
|
0
|
|
|
|
0
|
if ($@) { die $@ unless ($@ =~ /^Can't locate .*? at /); } |
|
0
|
0
|
|
|
|
0
|
|
33
|
0
|
|
|
|
|
0
|
else { $XS_OK = 1; } |
34
|
|
|
|
|
|
|
} |
35
|
50
|
50
|
|
|
|
210
|
unless ($XS_OK) |
36
|
|
|
|
|
|
|
{ |
37
|
50
|
|
|
|
|
34204
|
require Date::Calc::PP; |
38
|
50
|
|
|
|
|
917
|
@EXPORT = (@Date::Calc::PP::EXPORT); |
39
|
50
|
|
|
|
|
1032
|
@EXPORT_OK = (@Date::Calc::PP::EXPORT_OK); |
40
|
50
|
|
|
|
|
357
|
%EXPORT_TAGS = (all => [@EXPORT_OK]); |
41
|
50
|
|
|
|
|
18742
|
Date::Calc::PP->import(@EXPORT,@EXPORT_OK); |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
################################################## |
46
|
|
|
|
|
|
|
## ## |
47
|
|
|
|
|
|
|
## "Version()" is available but not exported ## |
48
|
|
|
|
|
|
|
## in order to avoid possible name clashes. ## |
49
|
|
|
|
|
|
|
## Call with "Date::Calc::Version()" instead! ## |
50
|
|
|
|
|
|
|
## ## |
51
|
|
|
|
|
|
|
################################################## |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
$VERSION = '6.4'; |
54
|
|
|
|
|
|
|
|
55
|
1
|
|
|
1
|
1
|
411
|
sub Version { return $VERSION; } |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
1; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
__END__ |