The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

FormValidator::Lite::Constraint::Time - time constraints

DESCRIPTION

This module provides time constraints.

CONSTRAINTS

TIME
$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.