| 1 | ## | ||||||||||
| 2 | ## Russian cp1251 (CP1251 byte encoding) | ||||||||||
| 3 | ## | ||||||||||
| 4 | |||||||||||
| 5 | package Date::Language::Russian_cp1251; | ||||||||||
| 6 | |||||||||||
| 7 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 1 | ▶ | use Date::Language (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 1 | ▶ | use base 'Date::Language'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | 1 | our $VERSION = '2.35'; # VERSION: generated | |||||||||
| 15 | # ABSTRACT: Russian localization for Date::Format (CP1251) | ||||||||||
| 16 | |||||||||||
| 17 | 1 | our (@DoW, @DoWs, @MoY, @MoYs, @AMPM, @Dsuf, %MoY, %DoW); | |||||||||
| 18 | |||||||||||
| 19 | 1 | @DoW = ( | |||||||||
| 20 | "\xc2\xee\xf1\xea\xf0\xe5\xf1\xe5\xed\xfc\xe5", # Воскресенье | ||||||||||
| 21 | "\xcf\xee\xed\xe5\xe4\xe5\xeb\xfc\xed\xe8\xea", # Понедельник | ||||||||||
| 22 | "\xc2\xf2\xee\xf0\xed\xe8\xea", # Вторник | ||||||||||
| 23 | "\xd1\xf0\xe5\xe4\xe0", # Среда | ||||||||||
| 24 | "\xd7\xe5\xf2\xe2\xe5\xf0\xe3", # Четверг | ||||||||||
| 25 | "\xcf\xff\xf2\xed\xe8\xf6\xe0", # Пятница | ||||||||||
| 26 | "\xd1\xf3\xe1\xe1\xee\xf2\xe0", # Суббота | ||||||||||
| 27 | ); | ||||||||||
| 28 | |||||||||||
| 29 | 1 | @MoY = ( | |||||||||
| 30 | "\xdf\xed\xe2\xe0\xf0\xfc", # Январь | ||||||||||
| 31 | "\xd4\xe5\xe2\xf0\xe0\xeb\xfc", # Февраль | ||||||||||
| 32 | "\xcc\xe0\xf0\xf2", # Март | ||||||||||
| 33 | "\xc0\xef\xf0\xe5\xeb\xfc", # Апрель | ||||||||||
| 34 | "\xcc\xe0\xe9", # Май | ||||||||||
| 35 | "\xc8\xfe\xed\xfc", # Июнь | ||||||||||
| 36 | "\xc8\xfe\xeb\xfc", # Июль | ||||||||||
| 37 | "\xc0\xe2\xe3\xf3\xf1\xf2", # Август | ||||||||||
| 38 | "\xd1\xe5\xed\xf2\xff\xe1\xf0\xfc", # Сентябрь | ||||||||||
| 39 | "\xce\xea\xf2\xff\xe1\xf0\xfc", # Октябрь | ||||||||||
| 40 | "\xcd\xee\xff\xe1\xf0\xfc", # Ноябрь | ||||||||||
| 41 | "\xc4\xe5\xea\xe0\xe1\xf0\xfc", # Декабрь | ||||||||||
| 42 | ); | ||||||||||
| 43 | |||||||||||
| 44 | 1 | @DoWs = ( | |||||||||
| 45 | "\xc2\xf1\xea", # Вск | ||||||||||
| 46 | "\xcf\xed\xe4", # Пнд | ||||||||||
| 47 | "\xc2\xf2\xf0", # Втр | ||||||||||
| 48 | "\xd1\xf0\xe4", # Срд | ||||||||||
| 49 | "\xd7\xf2\xe2", # Чтв | ||||||||||
| 50 | "\xcf\xf2\xed", # Птн | ||||||||||
| 51 | "\xd1\xe1\xf2", # Сбт | ||||||||||
| 52 | ); | ||||||||||
| 53 | |||||||||||
| 54 | 1 | @MoYs = map { substr($_,0,3) } @MoY; | |||||||||
| 55 | 1 | @AMPM = qw(AM PM); | |||||||||
| 56 | |||||||||||
| 57 | 1 | @Dsuf = ('e') x 31; | |||||||||
| 58 | |||||||||||
| 59 | 1 | Date::Language::_build_lookups(); | |||||||||
| 60 | |||||||||||
| 61 | # Formatting routines | ||||||||||
| 62 | |||||||||||
| 63 | 1 | ▶ | sub format_a { $DoWs[$_[0]->[6]] } | ||||||||
|
Subroutine
format_a: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 64 | 1 | ▶ | sub format_A { $DoW[$_[0]->[6]] } | ||||||||
|
Subroutine
format_A: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 65 | 1 | ▶ | sub format_b { $MoYs[$_[0]->[4]] } | ||||||||
|
Subroutine
format_b: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 66 | 1 | ▶ | sub format_B { $MoY[$_[0]->[4]] } | ||||||||
|
Subroutine
format_B: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 67 | 0 | ▶ | sub format_h { $MoYs[$_[0]->[4]] } | ||||||||
|
Subroutine
format_h: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 68 | 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
| |||||||||||
| 69 | 0 | ▶ | sub format_o { sprintf("%2de",$_[0]->[3]) } | ||||||||
|
Subroutine
format_o: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 70 | |||||||||||
| 71 | 1 | 1; | |||||||||
| 72 | |||||||||||
| 73 | __END__ | ||||||||||