Debian Codegraph @

lib/Date/Language/Amharic.pm

raw
1 ##
2 ## Amharic tables
3 ##
4
5 package Date::Language::Amharic;
6
7 use strict;
8 use warnings;
9
10 use Date::Language ();
11 use base 'Date::Language';
12
13 our $VERSION = '2.35'; # VERSION: generated
14 # ABSTRACT: Amharic localization for Date::Format
15
16 our (@DoW, @DoWs, @MoY, @MoYs, @AMPM, @Dsuf, %MoY, %DoW);
17
18 if ( $] >= 5.006 ) {
19 @DoW = (
20 "\x{12a5}\x{1211}\x{12f5}",
21 "\x{1230}\x{129e}",
22 "\x{121b}\x{12ad}\x{1230}\x{129e}",
23 "\x{1228}\x{1261}\x{12d5}",
24 "\x{1210}\x{1219}\x{1235}",
25 "\x{12d3}\x{122d}\x{1265}",
26 "\x{1245}\x{12f3}\x{121c}"
27 );
28 @MoY = (
29 "\x{1303}\x{1295}\x{12e9}\x{12c8}\x{122a}",
30 "\x{134c}\x{1265}\x{1229}\x{12c8}\x{122a}",
31 "\x{121b}\x{122d}\x{127d}",
32 "\x{12a4}\x{1355}\x{1228}\x{120d}",
33 "\x{121c}\x{12ed}",
34 "\x{1301}\x{1295}",
35 "\x{1301}\x{120b}\x{12ed}",
36 "\x{12a6}\x{1308}\x{1235}\x{1275}",
37 "\x{1234}\x{1355}\x{1274}\x{121d}\x{1260}\x{122d}",
38 "\x{12a6}\x{12ad}\x{1270}\x{12cd}\x{1260}\x{122d}",
39 "\x{1296}\x{126c}\x{121d}\x{1260}\x{122d}",
40 "\x{12f2}\x{1234}\x{121d}\x{1260}\x{122d}"
41 );
42 @DoWs = map { substr($_,0,3) } @DoW;
43 @MoYs = map { substr($_,0,3) } @MoY;
44 @AMPM = ( "\x{1320}\x{12cb}\x{1275}", "\x{12a8}\x{1230}\x{12d3}\x{1275}" );
45
46 @Dsuf = ("\x{129b}" x 31);
47 }
48 else {
49 @DoW = (
50 "እሑድ",
51 "ሰኞ",
52 "ማክሰኞ",
53 "ረቡዕ",
54 "ሐሙስ",
55 "ዓርብ",
56 "ቅዳሜ"
57 );
58 @MoY = (
59 "ጃንዩወሪ",
60 "ፌብሩወሪ",
61 "ማርች",
62 "ኤፕረል",
63 "ሜይ",
64 "ጁን",
65 "ጁላይ",
66 "ኦገስት",
67 "ሴፕቴምበር",
68 "ኦክተውበር",
69 "ኖቬምበር",
70 "ዲሴምበር"
71 );
72 @DoWs = map { substr($_,0,9) } @DoW;
73 @MoYs = map { substr($_,0,9) } @MoY;
74 @AMPM = ( "ጠዋት", "ከሰዓት" );
75
76 @Dsuf = ("ኛ" x 31);
77 }
78
79 Date::Language::_build_lookups();
80
81 # Formatting routines
82
83 sub format_a { $DoWs[$_[0]->[6]] }
84 sub format_A { $DoW[$_[0]->[6]] }
85 sub format_b { $MoYs[$_[0]->[4]] }
86 sub format_B { $MoY[$_[0]->[4]] }
87 sub format_h { $MoYs[$_[0]->[4]] }
88 sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
89
90 1;
91
92 __END__
93
94 =pod
95
96 =encoding UTF-8
97
98 =head1 NAME
99
100 Date::Language::Amharic - Amharic localization for Date::Format
101
102 =head1 VERSION
103
104 version 2.35
105
106 =head1 AUTHOR
107
108 Graham <[email protected]>
109
110 =head1 COPYRIGHT AND LICENSE
111
112 This software is copyright (c) 2020 by Graham Barr.
113
114 This is free software; you can redistribute it and/or modify it under
115 the same terms as the Perl 5 programming language system itself.
116
117 =cut