Daisuke Murase > FormValidator-Lite-0.15 > FormValidator::Lite::Constraint::Time

Download:
FormValidator-Lite-0.15.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: FormValidator-Lite-0.38

NAME ^

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

DESCRIPTION ^

This module provides date constraints.

CONSTRAINTS ^

DATE
    $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 date or not.

syntax highlighting: