File Coverage

blib/lib/Time/Str/Calendar.pm
Criterion Covered Total %
statement 17 19 89.4
branch 1 2 50.0
condition n/a
subroutine 5 5 100.0
pod n/a
total 23 26 88.4


line stmt bran cond sub pod time code
1             package Time::Str::Calendar;
2 2     2   100610 use strict;
  2         5  
  2         122  
3 2     2   13 use warnings;
  2         3  
  2         108  
4 2     2   28 use v5.10.1;
  2         9  
5              
6 2     2   26 use Exporter qw[import];
  2         6  
  2         366  
7              
8             BEGIN {
9 2     2   8 our $VERSION = '0.87';
10 2         9 our @EXPORT_OK = qw[ leap_year
11             month_days
12             nth_dow_in_month
13             valid_ymd
14             yd_to_md
15             ymd_to_doy
16             ymd_to_dow
17             ymd_to_rdn
18             rdn_to_ymd
19             rdn_to_dow
20             resolve_century ];
21 2         5 our %EXPORT_TAGS = ( all => \@EXPORT_OK );
22 2         5 our @CARP_NOT = qw[Time::Str::PP::Calendar];
23              
24 2         680 require Time::Str;
25 2 50       99 unless (Time::Str::IMPLEMENTATION() eq 'XS') {
26 0           require Time::Str::PP; Time::Str::PP::Calendar->import(@EXPORT_OK);
  0            
27             }
28             }
29              
30             1;