The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Template::Flute::Filter::Date - Date filter

DESCRIPTION

Date filter based on DateTime.

PREREQUSITES

DateTime and DateTime::Format::ISO8601 modules.

METHODS

init

The init method allows you to set the following options:

format

Format string for DateTime's strftime method. Defaults to %c.

strict

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}

filter

Date filter.

AUTHOR

Stefan Hornburg (Racke), <racke@linuxia.de>

LICENSE AND COPYRIGHT

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.