| 1 |
## |
| 2 |
## Russian koi8r (KOI8-R byte encoding) |
| 3 |
## |
| 4 |
|
| 5 |
package Date::Language::Russian_koi8r; |
| 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 (KOI8-R variant) |
| 16 |
|
| 17 |
our (@DoW, @DoWs, @MoY, @MoYs, @AMPM, @Dsuf, %MoY, %DoW); |
| 18 |
|
| 19 |
@DoW = ( |
| 20 |
"\xf7\xcf\xd3\xcb\xd2\xc5\xd3\xc5\xce\xd8\xc5", # Воскресенье |
| 21 |
"\xf0\xcf\xce\xc5\xc4\xc5\xcc\xd8\xce\xc9\xcb", # Понедельник |
| 22 |
"\xf7\xd4\xcf\xd2\xce\xc9\xcb", # Вторник |
| 23 |
"\xf3\xd2\xc5\xc4\xc1", # Среда |
| 24 |
"\xfe\xc5\xd4\xd7\xc5\xd2\xc7", # Четверг |
| 25 |
"\xf0\xd1\xd4\xce\xc9\xc3\xc1", # Пятница |
| 26 |
"\xf3\xd5\xc2\xc2\xcf\xd4\xc1", # Суббота |
| 27 |
); |
| 28 |
|
| 29 |
@MoY = ( |
| 30 |
"\xf1\xce\xd7\xc1\xd2\xd8", # Январь |
| 31 |
"\xe6\xc5\xd7\xd2\xc1\xcc\xd8", # Февраль |
| 32 |
"\xed\xc1\xd2\xd4", # Март |
| 33 |
"\xe1\xd0\xd2\xc5\xcc\xd8", # Апрель |
| 34 |
"\xed\xc1\xca", # Май |
| 35 |
"\xe9\xc0\xce\xd8", # Июнь |
| 36 |
"\xe9\xc0\xcc\xd8", # Июль |
| 37 |
"\xe1\xd7\xc7\xd5\xd3\xd4", # Август |
| 38 |
"\xf3\xc5\xce\xd4\xd1\xc2\xd2\xd8", # Сентябрь |
| 39 |
"\xef\xcb\xd4\xd1\xc2\xd2\xd8", # Октябрь |
| 40 |
"\xee\xcf\xd1\xc2\xd2\xd8", # Ноябрь |
| 41 |
"\xe4\xc5\xcb\xc1\xc2\xd2\xd8", # Декабрь |
| 42 |
); |
| 43 |
|
| 44 |
@DoWs = ( |
| 45 |
"\xf7\xd3\xcb", # Вск |
| 46 |
"\xf0\xce\xc4", # Пнд |
| 47 |
"\xf7\xd4\xd2", # Втр |
| 48 |
"\xf3\xd2\xc4", # Срд |
| 49 |
"\xfe\xd4\xd7", # Чтв |
| 50 |
"\xf0\xd4\xce", # Птн |
| 51 |
"\xf3\xc2\xd4", # Сбт |
| 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_koi8r - Russian localization for Date::Format (KOI8-R variant) |
| 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 |