line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
## |
2
|
|
|
|
|
|
|
## French tables, contributed by Emmanuel Bataille (bem@residents.frmug.org) |
3
|
|
|
|
|
|
|
## |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Date::Language::French; |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
7
|
use Date::Language (); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
8
|
1
|
|
|
1
|
|
5
|
use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
442
|
|
9
|
|
|
|
|
|
|
@ISA = qw(Date::Language); |
10
|
|
|
|
|
|
|
$VERSION = "1.04"; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
@DoW = qw(dimanche lundi mardi mercredi jeudi vendredi samedi); |
13
|
|
|
|
|
|
|
@MoY = qw(janvier février mars avril mai juin |
14
|
|
|
|
|
|
|
juillet août septembre octobre novembre décembre); |
15
|
|
|
|
|
|
|
@DoWs = map { substr($_,0,3) } @DoW; |
16
|
|
|
|
|
|
|
@MoYs = map { substr($_,0,3) } @MoY; |
17
|
|
|
|
|
|
|
$MoYs[6] = 'jul'; |
18
|
|
|
|
|
|
|
@AMPM = qw(AM PM); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
@Dsuf = ((qw(er e e e e e e e e e)) x 3, 'er'); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
@MoY{@MoY} = (0 .. scalar(@MoY)); |
23
|
|
|
|
|
|
|
@MoY{@MoYs} = (0 .. scalar(@MoYs)); |
24
|
|
|
|
|
|
|
@DoW{@DoW} = (0 .. scalar(@DoW)); |
25
|
|
|
|
|
|
|
@DoW{@DoWs} = (0 .. scalar(@DoWs)); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
# Formatting routines |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
0
|
0
|
|
sub format_a { $DoWs[$_[0]->[6]] } |
30
|
0
|
|
|
0
|
0
|
|
sub format_A { $DoW[$_[0]->[6]] } |
31
|
0
|
|
|
0
|
0
|
|
sub format_b { $MoYs[$_[0]->[4]] } |
32
|
0
|
|
|
0
|
0
|
|
sub format_B { $MoY[$_[0]->[4]] } |
33
|
0
|
|
|
0
|
0
|
|
sub format_h { $MoYs[$_[0]->[4]] } |
34
|
0
|
0
|
|
0
|
0
|
|
sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] } |
35
|
0
|
|
|
0
|
0
|
|
sub format_o { $_[0]->[3] } |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |