Jerome Eteve > Form-Toolkit-0.007 > Form::Toolkit::FieldRole::DateTruncate

Download:
Form-Toolkit-0.007.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.007   Source   Latest Release: Form-Toolkit-0.008

NAME ^

Form::Toolkit::FieldRole::DateTruncate - Truncate a Date to the given date_truncation.

value_matches

Returns true if the held value matches the given date given the set date_truncation.

Usage:

 $this->value_matches(DateTime->now());

value_before

Is the value before (inclusive) the given date in the set date_truncation?

Usage:

 if( $this->value_before(DateTime->now()) ){

 }
syntax highlighting: