Вячеслав Тихановский > Input-Validator-0.001005 > Input::Validator::Constraint::Time

Download:
Input-Validator-0.001005.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Input::Validator::Constraint::Time - Time constraint

SYNOPSIS ^

    $validator->field('time')->constraint(time => [split => ':']);

DESCRIPTION ^

Checks whether a value is a valid time. Time is a string with a separator (: by default), that is splitted into hour, minute, second sequence and then validated.

METHODS ^

is_valid

Validates the constraint.

SEE ALSO ^

Input::Validator, Input::Constraint

syntax highlighting: