| 1 | ## | ||||||||||
| 2 | ## Spanish tables | ||||||||||
| 3 | ## | ||||||||||
| 4 | |||||||||||
| 5 | package Date::Language::Spanish; | ||||||||||
| 6 | |||||||||||
| 7 | 3 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 3 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 3 | ▶ | use utf8; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 3 | ▶ | use Date::Language (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 3 | ▶ | use base 'Date::Language'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | 3 | our $VERSION = '2.35'; # VERSION: generated | |||||||||
| 15 | # ABSTRACT: Spanish localization for Date::Format | ||||||||||
| 16 | |||||||||||
| 17 | 3 | our @DoW = qw(domingo lunes martes miércoles jueves viernes sábado); | |||||||||
| 18 | 3 | our @MoY = qw(enero febrero marzo abril mayo junio | |||||||||
| 19 | julio agosto septiembre octubre noviembre diciembre); | ||||||||||
| 20 | 3 | our @DoWs = map { substr($_,0,3) } @DoW; | |||||||||
| 21 | 3 | our @MoYs = map { substr($_,0,3) } @MoY; | |||||||||
| 22 | 3 | our @AMPM = qw(AM PM); | |||||||||
| 23 | |||||||||||
| 24 | 3 | our @Dsuf = ((qw(ro do ro to to to mo vo no mo)) x 3, 'ro'); | |||||||||
| 25 | |||||||||||
| 26 | 3 | our ( %MoY, %DoW ); | |||||||||
| 27 | 3 | Date::Language::_build_lookups(); | |||||||||
| 28 | |||||||||||
| 29 | # Formatting routines | ||||||||||
| 30 | |||||||||||
| 31 | 3 | ▶ | sub format_a { $DoWs[$_[0]->[6]] } | ||||||||
|
Subroutine
format_a: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 32 | 2 | ▶ | sub format_A { $DoW[$_[0]->[6]] } | ||||||||
|
Subroutine
format_A: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 33 | 3 | ▶ | sub format_b { $MoYs[$_[0]->[4]] } | ||||||||
|
Subroutine
format_b: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 34 | 2 | ▶ | sub format_B { $MoY[$_[0]->[4]] } | ||||||||
|
Subroutine
format_B: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 35 | 0 | ▶ | sub format_h { $MoYs[$_[0]->[4]] } | ||||||||
|
Subroutine
format_h: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 36 | 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
| |||||||||||
| 37 | |||||||||||
| 38 | 3 | 1; | |||||||||
| 39 | |||||||||||
| 40 | __END__ | ||||||||||