Debian Codegraph @

lib/Date/Language/Occitan.pm

raw
1 ##
2 ## Occitan tables, contributed by Quentn PAGÈS
3 ##
4
5 package Date::Language::Occitan;
6
7 use strict;
8 use warnings;
9 use Date::Language ();
10 use base 'Date::Language';
11
12 our $VERSION = '2.35'; # VERSION: generated
13 # ABSTRACT: Occitan localization for Date::Format
14
15 our (@DoW, @DoWs, @MoY, @MoYs, @AMPM, @Dsuf, %MoY, %DoW);
16
17 @DoW = qw(dimenge diluns dimars dimècres dijòus divendres dissabte);
18 @MoY = qw(genièr febrièr març abrial mai junh
19 julhet agost setembre octòbre novembre decembre);
20 @DoWs = map { substr($_,0,3) } @DoW;
21 @MoYs = map { substr($_,0,3) } @MoY;
22 $MoYs[6] = 'jul';
23 @AMPM = qw(AM PM);
24
25 @Dsuf = ((qw(er e e e e e e e e e)) x 3, 'er');
26
27 Date::Language::_build_lookups();
28
29 # Formatting routines
30
31 sub format_a { $DoWs[$_[0]->[6]] }
32 sub format_A { $DoW[$_[0]->[6]] }
33 sub format_b { $MoYs[$_[0]->[4]] }
34 sub format_B { $MoY[$_[0]->[4]] }
35 sub format_h { $MoYs[$_[0]->[4]] }
36 sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
37
38 1;
39
40 __END__
41
42 =pod
43
44 =encoding UTF-8
45
46 =head1 NAME
47
48 Date::Language::Occitan - Occitan localization for Date::Format
49
50 =head1 VERSION
51
52 version 2.35
53
54 =head1 AUTHOR
55
56 Graham <[email protected]>
57
58 =head1 COPYRIGHT AND LICENSE
59
60 This software is copyright (c) 2020 by Graham Barr.
61
62 This is free software; you can redistribute it and/or modify it under
63 the same terms as the Perl 5 programming language system itself.
64
65 =cut