Form::Toolkit::FieldRole::DateTruncate - Truncate a Date to the given date_truncation.
Returns true if the held value matches the given date given the set date_truncation.
Usage:
$this->value_matches(DateTime->now());
Is the value before (inclusive) the given date in the set date_truncation?
if( $this->value_before(DateTime->now()) ){ }
To install Form::Toolkit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Form::Toolkit
CPAN shell
perl -MCPAN -e shell install Form::Toolkit
For more information on module installation, please visit the detailed CPAN module installation guide.