Debian Codegraph @

lib/Date/Language/Afar.pm

raw
1 ##
2 ## Afar tables
3 ##
4
5 package Date::Language::Afar;
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: Afar localization for Date::Format
15
16 our (@DoW, @DoWs, @MoY, @MoYs, @AMPM, @Dsuf, %MoY, %DoW);
17
18 @DoW = qw(Acaada Etleeni Talaata Arbaqa Kamiisi Gumqata Sabti);
19 @MoY = (
20 "Qunxa Garablu",
21 "Kudo",
22 "Ciggilta Kudo",
23 "Agda Baxis",
24 "Caxah Alsa",
25 "Qasa Dirri",
26 "Qado Dirri",
27 "Liiqen",
28 "Waysu",
29 "Diteli",
30 "Ximoli",
31 "Kaxxa Garablu"
32 );
33 @DoWs = map { substr($_,0,3) } @DoW;
34 @MoYs = map { substr($_,0,3) } @MoY;
35 @AMPM = qw(saaku carra);
36
37 @Dsuf = (qw(th st nd rd th th th th th th)) x 3;
38 @Dsuf[11,12,13] = qw(th th th);
39 @Dsuf[30,31] = qw(th st);
40
41 Date::Language::_build_lookups();
42
43 # Formatting routines
44
45 sub format_a { $DoWs[$_[0]->[6]] }
46 sub format_A { $DoW[$_[0]->[6]] }
47 sub format_b { $MoYs[$_[0]->[4]] }
48 sub format_B { $MoY[$_[0]->[4]] }
49 sub format_h { $MoYs[$_[0]->[4]] }
50 sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
51
52 1;
53
54 __END__
55
56 =pod
57
58 =encoding UTF-8
59
60 =head1 NAME
61
62 Date::Language::Afar - Afar localization for Date::Format
63
64 =head1 VERSION
65
66 version 2.35
67
68 =head1 AUTHOR
69
70 Graham <[email protected]>
71
72 =head1 COPYRIGHT AND LICENSE
73
74 This software is copyright (c) 2020 by Graham Barr.
75
76 This is free software; you can redistribute it and/or modify it under
77 the same terms as the Perl 5 programming language system itself.
78
79 =cut