Stefan Hornburg (Racke) > Template-Flute-0.0066 > Template::Flute::Filter::Date

Download:
Template-Flute-0.0066.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: Template-Flute-0.0140

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.

syntax highlighting: