| 1 | package Date::Simple::D8; | ||
| 2 | 3 | ▶ | use Date::Simple 3; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 3 | ▶ | use base qw/Date::Simple/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use overload '""' => 'as_d8'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 3 | *EXPORT = *Date::Simple::EXPORT; | |
| 7 | 3 | *EXPORT_OK = *Date::Simple::EXPORT_OK; | |
| 8 | 3 | *EXPORT_TAGS = *Date::Simple::EXPORT_TAGS; | |
| 9 | |||
| 10 | 0 | ▶ | sub d8 { shift->_d8(@_) } |
|
Subroutine
d8: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 11 | 0 | ▶ | sub today { shift->_today(@_) } |
|
Subroutine
today: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 12 | 0 | ▶ | sub ymd { shift->_ymd(@_) } |
|
Subroutine
ymd: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 13 | |||
| 14 | 3 | 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<Date::Simple> for full documentation. | ||
| 41 | |||
| 42 | =cut | ||
| 43 | |||