Debian Codegraph @

lib/Date/Language/TigrinyaEthiopian.pm

raw
1 ##
2 ## Tigrinya-Ethiopian tables
3 ##
4
5 package Date::Language::TigrinyaEthiopian;
6
7 use strict;
8 use warnings;
9
10 use Date::Language ();
11 use base qw(Date::Language);
12
13 our $VERSION = '2.35'; # VERSION: generated
14 # ABSTRACT: TigrinyaEthiopian localization for Date::Format
15
16 our (@DoW, @DoWs, @MoY, @MoYs, @AMPM, @Dsuf, %MoY, %DoW);
17
18 if ( $] >= 5.006 ) {
19 @DoW = (
20 "\x{1230}\x{1295}\x{1260}\x{1275}",
21 "\x{1230}\x{1291}\x{12ed}",
22 "\x{1230}\x{1209}\x{1235}",
23 "\x{1228}\x{1261}\x{12d5}",
24 "\x{1213}\x{1219}\x{1235}",
25 "\x{12d3}\x{122d}\x{1262}",
26 "\x{1240}\x{12f3}\x{121d}"
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 = (
45 "\x{1295}/\x{1230}",
46 "\x{12F5}/\x{1230}"
47 );
48
49 @Dsuf = ("\x{12ed}" x 31);
50 }
51 else {
52 @DoW = (
53 "ሰንበት",
54 "ሰኑይ",
55 "ሰሉስ",
56 "ረቡዕ",
57 "ሓሙስ",
58 "ዓርቢ",
59 "ቀዳም"
60 );
61 @MoY = (
62 "ጃንዩወሪ",
63 "ፌብሩወሪ",
64 "ማርች",
65 "ኤፕረል",
66 "ሜይ",
67 "ጁን",
68 "ጁላይ",
69 "ኦገስት",
70 "ሴፕቴምበር",
71 "ኦክተውበር",
72 "ኖቬምበር",
73 "ዲሴምበር"
74 );
75 @DoWs = map { substr($_,0,9) } @DoW;
76 @MoYs = map { substr($_,0,9) } @MoY;
77 @AMPM = (
78 "ን/ሰ",
79 "ድ/ሰ"
80 );
81
82 @Dsuf = ("ይ" x 31);
83 }
84
85 Date::Language::_build_lookups();
86
87 # Formatting routines
88
89 sub format_a { $DoWs[$_[0]->[6]] }
90 sub format_A { $DoW[$_[0]->[6]] }
91 sub format_b { $MoYs[$_[0]->[4]] }
92 sub format_B { $MoY[$_[0]->[4]] }
93 sub format_h { $MoYs[$_[0]->[4]] }
94 sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
95
96 1;
97
98 __END__
99
100 =pod
101
102 =encoding UTF-8
103
104 =head1 NAME
105
106 Date::Language::TigrinyaEthiopian - TigrinyaEthiopian localization for Date::Format
107
108 =head1 VERSION
109
110 version 2.35
111
112 =head1 AUTHOR
113
114 Graham <[email protected]>
115
116 =head1 COPYRIGHT AND LICENSE
117
118 This software is copyright (c) 2020 by Graham Barr.
119
120 This is free software; you can redistribute it and/or modify it under
121 the same terms as the Perl 5 programming language system itself.
122
123 =cut