line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Date::Simple::D8; |
2
|
3
|
|
|
3
|
|
12
|
use Date::Simple 3; |
|
3
|
|
|
|
|
34
|
|
|
3
|
|
|
|
|
118
|
|
3
|
3
|
|
|
3
|
|
13
|
use base qw/Date::Simple/; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
207
|
|
4
|
3
|
|
|
3
|
|
14
|
use overload '""' => 'as_d8'; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
15
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
*EXPORT = *Date::Simple::EXPORT; |
7
|
|
|
|
|
|
|
*EXPORT_OK = *Date::Simple::EXPORT_OK; |
8
|
|
|
|
|
|
|
*EXPORT_TAGS = *Date::Simple::EXPORT_TAGS; |
9
|
|
|
|
|
|
|
|
10
|
0
|
|
|
0
|
1
|
|
sub d8 { shift->_d8(@_) } |
11
|
0
|
|
|
0
|
1
|
|
sub today { shift->_today(@_) } |
12
|
0
|
|
|
0
|
1
|
|
sub ymd { shift->_ymd(@_) } |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
1; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 NAME |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
Date::Simple::D8 - Sub class of Date::Simple with eight digit date style formatting |
19
|
|
|
|
|
|
|
as default. |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 SYNOPSIS |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
use Date::Simple::D8; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 DESCRIPTION |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
This module changes the default stringification behaviour of Date::Simple objects to |
28
|
|
|
|
|
|
|
use the as_d8() method instead. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=item Date::Simple::D8->new ([ARG, ...]) |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=item date_d8 ([ARG, ...]) |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Identical to Date::Simple except that uses the D8 style formatting ('%Y%m%d') for |
35
|
|
|
|
|
|
|
overloaded stringification or when not providing a format argument to the format() |
36
|
|
|
|
|
|
|
method. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 SEE ALSO |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
L for full documentation. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=cut |
43
|
|
|
|
|
|
|
|