blib/lib/Astro/App/Satpass2/FormatTime/DateTime/Strftime.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 15 / 15 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Astro/App/Satpass2/FormatTime/DateTime.pm ↑ Summary blib/lib/Astro/App/Satpass2/FormatTime/Strftime.pm »
1 package Astro::App::Satpass2::FormatTime::DateTime::Strftime;
2  
3 20 ▶use 5.008;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 20 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 20 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 20 ▶use parent qw{
Subroutine BEGIN: called CC=1 SCAR=0.0
9 Astro::App::Satpass2::FormatTime::DateTime
10 20 };
11  
12 use Astro::App::Satpass2::FormatTime::Strftime;
13 use Astro::App::Satpass2::Utils qw{ @CARP_NOT };
14 use DateTime;
15 use DateTime::TimeZone;
16 use POSIX ();
17  
18 our $VERSION = '0.059';
19  
20 # So superclass can ducktype the object that does the real work.
21 use constant METHOD_USED => 'strftime';
22  
23 sub __format_datetime {
24 my ( $self, $date_time, $tplt ) = @_;
25 return $date_time->strftime( $self->__preprocess_strftime_format(
26 $date_time, $tplt ) );
27 }
28  
29 1;
30  
31 __END__
« blib/lib/Astro/App/Satpass2/FormatTime/DateTime.pm ↑ Summary blib/lib/Astro/App/Satpass2/FormatTime/Strftime.pm »