Template::Flute::Filter::Date - Date filter
Date filter based on DateTime.
DateTime and DateTime::Format::ISO8601 modules.
The init method allows you to set the following options:
Format string for DateTime's strftime method. Defaults to %c.
Determines how strict the filter is with empty resp. invalid dates. The default setting is to throw an error on both.
You can override this setting for empty and invalid dates separately resulting in returning an empty string instead.
Example for accepting empty dates:
options => {empty => 0}
Date filter.
Stefan Hornburg (Racke), <racke@linuxia.de>
Copyright 2011 Stefan Hornburg (Racke) <racke@linuxia.de>.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Template::Flute, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Flute
CPAN shell
perl -MCPAN -e shell install Template::Flute
For more information on module installation, please visit the detailed CPAN module installation guide.