| 1 |
## |
| 2 |
## Gedeo tables |
| 3 |
## |
| 4 |
|
| 5 |
package Date::Language::Gedeo; |
| 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: Gedeo localization for Date::Format |
| 15 |
|
| 16 |
our (@DoW, @DoWs, @MoY, @MoYs, @AMPM, @Dsuf, %MoY, %DoW); |
| 17 |
|
| 18 |
@DoW = qw( Sanbbattaa Sanno Masano Roobe Hamusse Arbe Qiddamme); |
| 19 |
@MoY = ( |
| 20 |
"Oritto", |
| 21 |
"Birre'a", |
| 22 |
"Onkkollessa", |
| 23 |
"Saddasa", |
| 24 |
"Arrasa", |
| 25 |
"Qammo", |
| 26 |
"Ella", |
| 27 |
"Waacibajje", |
| 28 |
"Canissa", |
| 29 |
"Addolessa", |
| 30 |
"Bittitotessa", |
| 31 |
"Hegeya" |
| 32 |
); |
| 33 |
@DoWs = map { substr($_,0,3) } @DoW; |
| 34 |
$DoWs[0] = "Snb"; |
| 35 |
$DoWs[1] = "Sno"; |
| 36 |
@MoYs = map { substr($_,0,3) } @MoY; |
| 37 |
@AMPM = qw(gorsa warreti-udumma); |
| 38 |
|
| 39 |
@Dsuf = (qw(th st nd rd th th th th th th)) x 3; |
| 40 |
@Dsuf[11,12,13] = qw(th th th); |
| 41 |
@Dsuf[30,31] = qw(th st); |
| 42 |
|
| 43 |
Date::Language::_build_lookups(); |
| 44 |
|
| 45 |
# Formatting routines |
| 46 |
|
| 47 |
sub format_a { $DoWs[$_[0]->[6]] } |
| 48 |
sub format_A { $DoW[$_[0]->[6]] } |
| 49 |
sub format_b { $MoYs[$_[0]->[4]] } |
| 50 |
sub format_B { $MoY[$_[0]->[4]] } |
| 51 |
sub format_h { $MoYs[$_[0]->[4]] } |
| 52 |
sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] } |
| 53 |
|
| 54 |
1; |
| 55 |
|
| 56 |
__END__ |
| 57 |
|
| 58 |
=pod |
| 59 |
|
| 60 |
=encoding UTF-8 |
| 61 |
|
| 62 |
=head1 NAME |
| 63 |
|
| 64 |
Date::Language::Gedeo - Gedeo localization for Date::Format |
| 65 |
|
| 66 |
=head1 VERSION |
| 67 |
|
| 68 |
version 2.35 |
| 69 |
|
| 70 |
=head1 AUTHOR |
| 71 |
|
| 72 |
Graham <[email protected]> |
| 73 |
|
| 74 |
=head1 COPYRIGHT AND LICENSE |
| 75 |
|
| 76 |
This software is copyright (c) 2020 by Graham Barr. |
| 77 |
|
| 78 |
This is free software; you can redistribute it and/or modify it under |
| 79 |
the same terms as the Perl 5 programming language system itself. |
| 80 |
|
| 81 |
=cut |