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.

PREREQUISITES

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 => {strict => {empty => 0}}
date_text

This option can be used to supply strings for empty and/or invalid dates. It also overrides the strict option.

Example for empty dates:

    options => {date_text => {empty => 'Not yet scheduled'}}

filter

Date filter.

AUTHOR

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

LICENSE AND COPYRIGHT

Copyright 2011-2016 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.