| 1 | ## | ||||||||||
| 2 | ## Hungarian tables based on English | ||||||||||
| 3 | ## | ||||||||||
| 4 | # | ||||||||||
| 5 | # This is a just-because-I-stumbled-across-it | ||||||||||
| 6 | # -and-my-wife-is-Hungarian release: if Graham or | ||||||||||
| 7 | # someone adds to docs to Date::Format, I'd be | ||||||||||
| 8 | # glad to correct bugs and extend as needed. | ||||||||||
| 9 | # | ||||||||||
| 10 | |||||||||||
| 11 | package Date::Language::Hungarian; | ||||||||||
| 12 | |||||||||||
| 13 | |||||||||||
| 14 | 3 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | 3 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 16 | 3 | ▶ | use utf8; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | 3 | ▶ | use Date::Language (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 18 | |||||||||||
| 19 | 3 | ▶ | use base 'Date::Language'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 20 | |||||||||||
| 21 | 3 | our $VERSION = '2.35'; # VERSION: generated | |||||||||
| 22 | # ABSTRACT: Hungarian localization for Date::Format | ||||||||||
| 23 | |||||||||||
| 24 | 3 | our @DoW = qw(Vasárnap Hétfő Kedd Szerda Csütörtök Péntek Szombat); | |||||||||
| 25 | 3 | our @MoY = qw(Január Február Március Április Május Június | |||||||||
| 26 | Július Augusztus Szeptember Október November December); | ||||||||||
| 27 | 3 | our @DoWs = map { substr($_,0,3) } @DoW; | |||||||||
| 28 | 3 | our @MoYs = map { substr($_,0,3) } @MoY; | |||||||||
| 29 | 3 | our @AMPM = qw(DE. DU.); | |||||||||
| 30 | |||||||||||
| 31 | # There is no 'th or 'nd in Hungarian, just a dot | ||||||||||
| 32 | 3 | our @Dsuf = (".") x 31; | |||||||||
| 33 | |||||||||||
| 34 | 3 | our ( %MoY, %DoW ); | |||||||||
| 35 | 3 | Date::Language::_build_lookups(); | |||||||||
| 36 | |||||||||||
| 37 | # Formatting routines | ||||||||||
| 38 | |||||||||||
| 39 | 3 | ▶ | sub format_a { $DoWs[$_[0]->[6]] } | ||||||||
|
Subroutine
format_a: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 40 | 2 | ▶ | sub format_A { $DoW[$_[0]->[6]] } | ||||||||
|
Subroutine
format_A: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 41 | 3 | ▶ | sub format_b { $MoYs[$_[0]->[4]] } | ||||||||
|
Subroutine
format_b: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 42 | 2 | ▶ | sub format_B { $MoY[$_[0]->[4]] } | ||||||||
|
Subroutine
format_B: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 43 | 0 | ▶ | sub format_h { $MoYs[$_[0]->[4]] } | ||||||||
|
Subroutine
format_h: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 44 | 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
| |||||||||||
| 45 | 0 | ▶ | sub format_P { lc($_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0]) } | ||||||||
|
Subroutine
format_P: not called CC=2 SCAR=17.9
Pod
undocumented
Branch: 1 branch
| |||||||||||
| 46 | 0 | ▶ | sub format_o { $_[0]->[3].'.' } | ||||||||
|
Subroutine
format_o: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 47 | |||||||||||
| 48 | 0 | ▶ | sub format_D { &format_y . "." . &format_m . "." . &format_d } | ||||||||
|
Subroutine
format_D: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 49 | |||||||||||
| 50 | 0 | ▶ | sub format_y { sprintf("%02d",$_[0]->[5] % 100) } | ||||||||
|
Subroutine
format_y: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 51 | 0 | ▶ | sub format_d { sprintf("%02d",$_[0]->[3]) } | ||||||||
|
Subroutine
format_d: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 52 | 0 | ▶ | sub format_m { sprintf("%02d",$_[0]->[4] + 1) } | ||||||||
|
Subroutine
format_m: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 53 | |||||||||||
| 54 | |||||||||||
| 55 | 3 | 1; | |||||||||
| 56 | |||||||||||
| 57 | __END__ | ||||||||||