Debian Codegraph @

lib/Date/Language/French.pm

raw
1 ##
2 ## French tables, contributed by Emmanuel Bataille ([email protected])
3 ##
4
5 package Date::Language::French;
6
7 use strict;
8 use warnings;
9 use utf8;
10 use Date::Language ();
11
12 use base 'Date::Language';
13
14 our $VERSION = '2.35'; # VERSION: generated
15 # ABSTRACT: French localization for Date::Format
16
17 our @DoW = qw(dimanche lundi mardi mercredi jeudi vendredi samedi);
18 our @MoY = qw(janvier février mars avril mai juin
19 juillet août septembre octobre novembre décembre);
20 our @DoWs = map { substr($_,0,3) } @DoW;
21 our @MoYs = map { substr($_,0,3) } @MoY;
22 $MoYs[6] = 'jul';
23
24 our @AMPM = qw(AM PM);
25 our @Dsuf = ('e', 'er', ('e') x 30);
26
27 our ( %MoY, %DoW );
28 Date::Language::_build_lookups();
29
30 # Formatting routines
31
32 sub format_a { $DoWs[$_[0]->[6]] }
33 sub format_A { $DoW[$_[0]->[6]] }
34 sub format_b { $MoYs[$_[0]->[4]] }
35 sub format_B { $MoY[$_[0]->[4]] }
36 sub format_h { $MoYs[$_[0]->[4]] }
37 sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
38 sub format_o { sprintf("%2d%s",$_[0]->[3],$Dsuf[$_[0]->[3]]) }
39
40 1;
41
42 __END__
43
44 =pod
45
46 =encoding UTF-8
47
48 =head1 NAME
49
50 Date::Language::French - French 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