Debian Codegraph @

lib/Date/Language/Sidama.pm

raw
1 ##
2 ## Sidama tables
3 ##
4
5 package Date::Language::Sidama;
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: Sidama localization for Date::Format
15
16 our (@DoW, @DoWs, @MoY, @MoYs, @AMPM, @Dsuf, %MoY, %DoW);
17
18 @DoW = qw(Sambata Sanyo Maakisanyo Roowe Hamuse Arbe Qidaame);
19 @MoY = qw(January February March April May June
20 July August September October November December);
21 @DoWs = map { substr($_,0,3) } @DoW;
22 @MoYs = map { substr($_,0,3) } @MoY;
23 @AMPM = qw(soodo hawwaro);
24
25 @Dsuf = (qw(th st nd rd th th th th th th)) x 3;
26 @Dsuf[11,12,13] = qw(th th th);
27 @Dsuf[30,31] = qw(th st);
28
29 Date::Language::_build_lookups();
30
31 # Formatting routines
32
33 sub format_a { $DoWs[$_[0]->[6]] }
34 sub format_A { $DoW[$_[0]->[6]] }
35 sub format_b { $MoYs[$_[0]->[4]] }
36 sub format_B { $MoY[$_[0]->[4]] }
37 sub format_h { $MoYs[$_[0]->[4]] }
38 sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
39
40 1;
41
42 __END__
43
44 =pod
45
46 =encoding UTF-8
47
48 =head1 NAME
49
50 Date::Language::Sidama - Sidama localization for Date::Format
51
52 =head1 VERSION
53
54 version 2.35
55
56 =head1 AUTHOR
57
58 Graham <[email protected]>
59
60 =head1 COPYRIGHT AND LICENSE
61
62 This software is copyright (c) 2020 by Graham Barr.
63
64 This is free software; you can redistribute it and/or modify it under
65 the same terms as the Perl 5 programming language system itself.
66
67 =cut