Date/Language/German.pm

filter: Statementstmt 100% 33 / 33 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 12 / 12 Podpod 0.0% 0 / 7 totaltotal 85.1% 46 / 54 CC 2 SCAR 1.6
CC
2
Cov
97%
format_p
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Date/Language/Italian.pm ↑ Summary Date/Language/Portuguese.pm »
1 ##
2 ## German tables
3 ##
4  
5 package Date::Language::German;
6  
7 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 6 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 6 ▶use Date::Language::English ();
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 6 ▶use base 'Date::Language';
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 6 our $VERSION = '2.35'; # VERSION: generated
16 # ABSTRACT: German localization for Date::Format
17  
18 6 our @MoY = qw(Januar Februar März April Mai Juni
19 Juli August September Oktober November Dezember);
20 6 our @MoYs = qw(Jan Feb Mär Apr Mai Jun Jul Aug Sep Okt Nov Dez);
21 6 our @DoW = qw(Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag);
22 6 our @DoWs = qw(So Mo Di Mi Do Fr Sa);
23  
24 6 our @AMPM = @{Date::Language::English::AMPM};
25 6 our @Dsuf = @{Date::Language::English::Dsuf};
26  
27 6 our ( %MoY, %DoW );
28 6 Date::Language::_build_lookups();
29  
30 # Timezone abbreviation translations (English → German)
31 6 our %TZ = (
32 'CET' => 'MEZ', # Mitteleuropäische Zeit
33 'CEST' => 'MESZ', # Mitteleuropäische Sommerzeit
34 'WET' => 'WEZ', # Westeuropäische Zeit
35 'WEST' => 'WESZ', # Westeuropäische Sommerzeit
36 'EET' => 'OEZ', # Osteuropäische Zeit
37 'EEST' => 'OESZ', # Osteuropäische Sommerzeit
38 );
39  
40 # Formatting routines
41  
42 5 ▶sub format_a { $DoWs[$_[0]->[6]] }
Subroutine format_a: called CC=1 SCAR=0.0
Pod undocumented
43 4 ▶sub format_A { $DoW[$_[0]->[6]] }
Subroutine format_A: called CC=1 SCAR=0.0
Pod undocumented
44 5 ▶sub format_b { $MoYs[$_[0]->[4]] }
Subroutine format_b: called CC=1 SCAR=0.0
Pod undocumented
45 4 ▶sub format_B { $MoY[$_[0]->[4]] }
Subroutine format_B: called CC=1 SCAR=0.0
Pod undocumented
46 1 ▶sub format_h { $MoYs[$_[0]->[4]] }
Subroutine format_h: called CC=1 SCAR=0.0
Pod undocumented
47 1 ▶sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
Subroutine format_p: called CC=2 SCAR=7.6
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
$_[0][2] >= 12 ? : 1 0 1
48 1 ▶sub format_o { sprintf("%2d.",$_[0]->[3]) }
Subroutine format_o: called CC=1 SCAR=0.0
Pod undocumented
49  
50 6 1;
51  
52 __END__
« Date/Language/Italian.pm ↑ Summary Date/Language/Portuguese.pm »