Debian Codegraph @

lib/Date/Language/TigrinyaEritrean.pm

raw
1 ##
2 ## Tigrinya-Eritrean tables
3 ##
4
5 package Date::Language::TigrinyaEritrean;
6
7 use strict;
8 use warnings;
9 use base 'Date::Language';
10
11 our $VERSION = '2.35'; # VERSION: generated
12 # ABSTRACT: TigrinyaEritrean localization for Date::Format
13
14 our (@DoW, @DoWs, @MoY, @MoYs, @AMPM, @Dsuf, %MoY, %DoW);
15
16 if ( $] >= 5.006 ) {
17 @DoW = (
18 "\x{1230}\x{1295}\x{1260}\x{1275}",
19 "\x{1230}\x{1291}\x{12ed}",
20 "\x{1230}\x{1209}\x{1235}",
21 "\x{1228}\x{1261}\x{12d5}",
22 "\x{1213}\x{1219}\x{1235}",
23 "\x{12d3}\x{122d}\x{1262}",
24 "\x{1240}\x{12f3}\x{121d}"
25 );
26 @MoY = (
27 "\x{1303}\x{1295}\x{12e9}\x{12c8}\x{122a}",
28 "\x{134c}\x{1265}\x{1229}\x{12c8}\x{122a}",
29 "\x{121b}\x{122d}\x{127d}",
30 "\x{12a4}\x{1355}\x{1228}\x{120d}",
31 "\x{121c}\x{12ed}",
32 "\x{1301}\x{1295}",
33 "\x{1301}\x{120b}\x{12ed}",
34 "\x{12a6}\x{1308}\x{1235}\x{1275}",
35 "\x{1234}\x{1355}\x{1274}\x{121d}\x{1260}\x{122d}",
36 "\x{12a6}\x{12ad}\x{1270}\x{12cd}\x{1260}\x{122d}",
37 "\x{1296}\x{126c}\x{121d}\x{1260}\x{122d}",
38 "\x{12f2}\x{1234}\x{121d}\x{1260}\x{122d}"
39 );
40 @DoWs = map { substr($_,0,3) } @DoW;
41 @MoYs = map { substr($_,0,3) } @MoY;
42 @AMPM = (
43 "\x{1295}/\x{1230}",
44 "\x{12F5}/\x{1230}"
45 );
46
47 @Dsuf = ("\x{12ed}" x 31);
48 }
49 else {
50 @DoW = (
51 "ሰንበት",
52 "ሰኑይ",
53 "ሰሉስ",
54 "ረቡዕ",
55 "ሓሙስ",
56 "ዓርቢ",
57 "ቀዳም"
58 );
59 @MoY = (
60 "ጥሪ",
61 "ለካቲት",
62 "መጋቢት",
63 "ሚያዝያ",
64 "ግንቦት",
65 "ሰነ",
66 "ሓምለ",
67 "ነሓሰ",
68 "መስከረም",
69 "ጥቅምቲ",
70 "ሕዳር",
71 "ታሕሳስ"
72 );
73 @DoWs = map { substr($_,0,9) } @DoW;
74 @MoYs = map { substr($_,0,9) } @MoY;
75 @AMPM = (
76 "ን/ሰ",
77 "ድ/ሰ"
78 );
79
80 @Dsuf = ("ይ" x 31);
81 }
82
83 Date::Language::_build_lookups();
84
85 # Formatting routines
86
87 sub format_a { $DoWs[$_[0]->[6]] }
88 sub format_A { $DoW[$_[0]->[6]] }
89 sub format_b { $MoYs[$_[0]->[4]] }
90 sub format_B { $MoY[$_[0]->[4]] }
91 sub format_h { $MoYs[$_[0]->[4]] }
92 sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
93
94 1;
95
96 __END__
97
98 =pod
99
100 =encoding UTF-8
101
102 =head1 NAME
103
104 Date::Language::TigrinyaEritrean - TigrinyaEritrean localization for Date::Format
105
106 =head1 VERSION
107
108 version 2.35
109
110 =head1 AUTHOR
111
112 Graham <[email protected]>
113
114 =head1 COPYRIGHT AND LICENSE
115
116 This software is copyright (c) 2020 by Graham Barr.
117
118 This is free software; you can redistribute it and/or modify it under
119 the same terms as the Perl 5 programming language system itself.
120
121 =cut