1Validation::Class::DireUcsteirveC:o:nTtirmieb(u3t)ed PerVlalDiodcautmieonnt:a:tCiloanss::Directive::Time(3)
2
3
4
6 Validation::Class::Directive::Time - Time Directive for Validation
7 Class Field Definitions
8
10 version 7.900057
11
13 use Validation::Class::Simple;
14
15 my $rules = Validation::Class::Simple->new(
16 fields => {
17 creation_time => {
18 time => 1
19 }
20 }
21 );
22
23 # set parameters to be validated
24 $rules->params->add($parameters);
25
26 # validate
27 unless ($rules->validate) {
28 # handle the failures
29 }
30
32 Validation::Class::Directive::Time is a core validation class field
33 directive that handles validation for standard time formats. This
34 directive respects the following time formats, 24hr (HH:MM) or am/pm
35 ([H]H:MM[a|p]m) and does not validate seconds.
36
38 Al Newkirk <anewkirk@ana.io>
39
41 This software is copyright (c) 2011 by Al Newkirk.
42
43 This is free software; you can redistribute it and/or modify it under
44 the same terms as the Perl 5 programming language system itself.
45
46
47
48perl v5.32.0 2020-07-V2a8lidation::Class::Directive::Time(3)