Debian Codegraph @

lib/Date/Language/Somali.pm

raw
1 ##
2 ## Somali tables
3 ##
4
5 package Date::Language::Somali;
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: Somali localization for Date::Format
15
16 our (@DoW, @DoWs, @MoY, @MoYs, @AMPM, @Dsuf, %MoY, %DoW);
17
18 @DoW = qw(Axad Isniin Salaaso Arbaco Khamiis Jimco Sabti);
19 @MoY = (
20 "Bisha Koobaad",
21 "Bisha Labaad",
22 "Bisha Saddexaad",
23 "Bisha Afraad",
24 "Bisha Shanaad",
25 "Bisha Lixaad",
26 "Bisha Todobaad",
27 "Bisha Sideedaad",
28 "Bisha Sagaalaad",
29 "Bisha Tobnaad",
30 "Bisha Kow iyo Tobnaad",
31 "Bisha Laba iyo Tobnaad"
32 );
33 @DoWs = map { substr($_,0,3) } @DoW;
34 @MoYs = (
35 "Kob",
36 "Lab",
37 "Sad",
38 "Afr",
39 "Sha",
40 "Lix",
41 "Tod",
42 "Sid",
43 "Sag",
44 "Tob",
45 "KIT",
46 "LIT"
47 );
48 @AMPM = qw(SN GN);
49
50 @Dsuf = (qw(th st nd rd th th th th th th)) x 3;
51 @Dsuf[11,12,13] = qw(th th th);
52 @Dsuf[30,31] = qw(th st);
53
54 Date::Language::_build_lookups();
55
56 # Formatting routines
57
58 sub format_a { $DoWs[$_[0]->[6]] }
59 sub format_A { $DoW[$_[0]->[6]] }
60 sub format_b { $MoYs[$_[0]->[4]] }
61 sub format_B { $MoY[$_[0]->[4]] }
62 sub format_h { $MoYs[$_[0]->[4]] }
63 sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
64
65 1;
66
67 __END__
68
69 =pod
70
71 =encoding UTF-8
72
73 =head1 NAME
74
75 Date::Language::Somali - Somali localization for Date::Format
76
77 =head1 VERSION
78
79 version 2.35
80
81 =head1 AUTHOR
82
83 Graham <[email protected]>
84
85 =head1 COPYRIGHT AND LICENSE
86
87 This software is copyright (c) 2020 by Graham Barr.
88
89 This is free software; you can redistribute it and/or modify it under
90 the same terms as the Perl 5 programming language system itself.
91
92 =cut