blib/lib/DBIx/Class/TimeStamp/WithTimeZone.pm

filter: Statementstmt 85.7% 12 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 89.4% 17 / 19 SCAR 0.0
CC
1
Cov
86%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package DBIx::Class::TimeStamp::WithTimeZone;
2  
3 1 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use base qw(DBIx::Class::TimeStamp);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use DateTime;
Subroutine BEGIN: called CC=1 SCAR=2.6
10  
11 our $VERSION = '0.02';
12  
13 sub get_timestamp {
14 return DateTime->now->set_time_zone($ENV{TZ}||$ENV{TIMEZONE}||'GMT');
15 }
16  
17 1;
↑ Summary