Date::Simple::D8 - Sub class of Date::Simple with eight digit date style formatting


Date-Simple documentation Contained in the Date-Simple distribution.

Index


Code Index:

NAME

Top

Date::Simple::D8 - Sub class of Date::Simple with eight digit date style formatting as default.

SYNOPSIS

Top

    use Date::Simple::D8;

DESCRIPTION

Top

This module changes the default stringification behaviour of Date::Simple objects to use the as_d8() method instead.

Identical to Date::Simple except that uses the D8 style formatting ('%Y%m%d') for overloaded stringification or when not providing a format argument to the format() method.

SEE ALSO

Top

Date::Simple for full documentation.


Date-Simple documentation Contained in the Date-Simple distribution.

package Date::Simple::D8;
use Date::Simple 3;
use base qw/Date::Simple/;
use overload '""' => 'as_d8';

*EXPORT      = *Date::Simple::EXPORT;
*EXPORT_OK   = *Date::Simple::EXPORT_OK;
*EXPORT_TAGS = *Date::Simple::EXPORT_TAGS;

sub d8    { shift->_d8(@_) }
sub today { shift->_today(@_) }
sub ymd   { shift->_ymd(@_) }

1;