| 1 | ## | ||||||||||
| 2 | ## Swedish tables | ||||||||||
| 3 | ## Contributed by Matthew Musgrove <muskrat@mindless.com> | ||||||||||
| 4 | ## Corrected by dempa | ||||||||||
| 5 | ## | ||||||||||
| 6 | |||||||||||
| 7 | package Date::Language::Swedish; | ||||||||||
| 8 | |||||||||||
| 9 | 3 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 3 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 3 | ▶ | use base 'Date::Language'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 3 | ▶ | use Date::Language::English (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | 3 | our $VERSION = '2.35'; # VERSION: generated | |||||||||
| 15 | # ABSTRACT: Swedish localization for Date::Format | ||||||||||
| 16 | |||||||||||
| 17 | 3 | our @MoY = qw(januari februari mars april maj juni juli augusti september oktober november december); | |||||||||
| 18 | 3 | our @MoYs = map { substr($_,0,3) } @MoY; | |||||||||
| 19 | 3 | our @DoW = map($_ . "dagen", qw(sön mån tis ons tors fre lör)); | |||||||||
| 20 | 3 | our @DoWs = map { substr($_,0,2) } @DoW; | |||||||||
| 21 | |||||||||||
| 22 | # the ordinals are not typically used in modern times | ||||||||||
| 23 | 3 | our @Dsuf = ('a' x 2, 'e' x 29); | |||||||||
| 24 | |||||||||||
| 25 | 3 | our @AMPM = @{Date::Language::English::AMPM}; | |||||||||
| 26 | |||||||||||
| 27 | 3 | our ( %MoY, %DoW ); | |||||||||
| 28 | 3 | Date::Language::_build_lookups(); | |||||||||
| 29 | |||||||||||
| 30 | # Formatting routines | ||||||||||
| 31 | |||||||||||
| 32 | 3 | ▶ | sub format_a { $DoWs[$_[0]->[6]] } | ||||||||
|
Subroutine
format_a: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 33 | 2 | ▶ | sub format_A { $DoW[$_[0]->[6]] } | ||||||||
|
Subroutine
format_A: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 34 | 3 | ▶ | sub format_b { $MoYs[$_[0]->[4]] } | ||||||||
|
Subroutine
format_b: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 35 | 2 | ▶ | sub format_B { $MoY[$_[0]->[4]] } | ||||||||
|
Subroutine
format_B: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 36 | 0 | ▶ | sub format_h { $MoYs[$_[0]->[4]] } | ||||||||
|
Subroutine
format_h: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 37 | 0 | ▶ | sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] } | ||||||||
|
Subroutine
format_p: not called CC=2 SCAR=17.9
Pod
undocumented
Branch: 1 branch
| |||||||||||
| 38 | 0 | ▶ | sub format_o { sprintf("%2de",$_[0]->[3]) } | ||||||||
|
Subroutine
format_o: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 39 | |||||||||||
| 40 | 3 | 1; | |||||||||
| 41 | |||||||||||
| 42 | __END__ | ||||||||||