DOKK / manpages / debian 12 / libdate-simple-perl / Date::Simple::Fmt.3pm.en
Date::Simple::Fmt(3pm) User Contributed Perl Documentation Date::Simple::Fmt(3pm)

Date::Simple::Fmt - Sub class of Date::Simple with per object level formatting for overloaded stringification.

    use Date::Simple::Fmt;

This module changes the default stringification behaviour of Date::Simple objects to use the format() method instead. It also changes the behaviour of the constructor.

Follows the same rules as for the equivelent method (new) and subroutine (date) in Date::Simple except that the first argument is expected to be the default format for the newly created object. It is this format that will be used when using overloaded stringification or when not providing a format argument to the format() method.

Date::Simple for full documentation.

2022-10-19 perl v5.36.0