| 1 |
## |
| 2 |
## Russian cp1251 (CP1251 byte encoding) |
| 3 |
## |
| 4 |
|
| 5 |
package Date::Language::Russian_cp1251; |
| 6 |
|
| 7 |
use strict; |
| 8 |
use warnings; |
| 9 |
|
| 10 |
use Date::Language (); |
| 11 |
|
| 12 |
use base 'Date::Language'; |
| 13 |
|
| 14 |
our $VERSION = '2.35'; # VERSION: generated |
| 15 |
# ABSTRACT: Russian localization for Date::Format (CP1251) |
| 16 |
|
| 17 |
our (@DoW, @DoWs, @MoY, @MoYs, @AMPM, @Dsuf, %MoY, %DoW); |
| 18 |
|
| 19 |
@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 |
@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 |
@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 |
@MoYs = map { substr($_,0,3) } @MoY; |
| 55 |
@AMPM = qw(AM PM); |
| 56 |
|
| 57 |
@Dsuf = ('e') x 31; |
| 58 |
|
| 59 |
Date::Language::_build_lookups(); |
| 60 |
|
| 61 |
# Formatting routines |
| 62 |
|
| 63 |
sub format_a { $DoWs[$_[0]->[6]] } |
| 64 |
sub format_A { $DoW[$_[0]->[6]] } |
| 65 |
sub format_b { $MoYs[$_[0]->[4]] } |
| 66 |
sub format_B { $MoY[$_[0]->[4]] } |
| 67 |
sub format_h { $MoYs[$_[0]->[4]] } |
| 68 |
sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] } |
| 69 |
sub format_o { sprintf("%2de",$_[0]->[3]) } |
| 70 |
|
| 71 |
1; |
| 72 |
|
| 73 |
__END__ |
| 74 |
|
| 75 |
=pod |
| 76 |
|
| 77 |
=encoding UTF-8 |
| 78 |
|
| 79 |
=head1 NAME |
| 80 |
|
| 81 |
Date::Language::Russian_cp1251 - Russian localization for Date::Format (CP1251) |
| 82 |
|
| 83 |
=head1 VERSION |
| 84 |
|
| 85 |
version 2.35 |
| 86 |
|
| 87 |
=head1 AUTHOR |
| 88 |
|
| 89 |
Graham <[email protected]> |
| 90 |
|
| 91 |
=head1 COPYRIGHT AND LICENSE |
| 92 |
|
| 93 |
This software is copyright (c) 2020 by Graham Barr. |
| 94 |
|
| 95 |
This is free software; you can redistribute it and/or modify it under |
| 96 |
the same terms as the Perl 5 programming language system itself. |
| 97 |
|
| 98 |
=cut |