FormValidator::Lite::Constraint::Time - time constraints
This module provides time constraints.
$validator = FormValidator::Lite->new(CGI->new("time=12:29:30")); $validator->check( time => ['TIME'] ); # or $validator = FormValidator::Lite->new(CGI->new("h=12&m=29&s=30")); $validator->check( {time => [qw/h m s/]} => ['TIME'] );
This constraints checks the parameter is valid time or not.
To install FormValidator::Lite, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FormValidator::Lite
CPAN shell
perl -MCPAN -e shell install FormValidator::Lite
For more information on module installation, please visit the detailed CPAN module installation guide.