1HTML::FormHandler::FielUds:e:rDaCtoenTtirmieb(u3t)ed PerHlTMDLo:c:uFmoernmtHaatnidolner::Field::DateTime(3)
2
3
4
6 HTML::FormHandler::Field::DateTime - compound DateTime field
7
9 version 0.40068
10
12 This is a compound field that requires you to define the subfields for
13 month/day/year/hour/minute. Widget type is 'compound'.
14
15 If you want to use drop-down select boxes for your DateTime, you can
16 select fields like:
17
18 has_field 'my_date' => ( type => 'DateTime' );
19 has_field 'my_date.month' => ( type => 'Month' );
20 has_field 'my_date.day' => ( type => 'MonthDay' );
21 has_field 'my_date.year' => ( type => 'Year' );
22 has_field 'my_date.hour' => ( type => 'Hour' );
23 has_field 'my_date.minute' => ( type => 'Minute' );
24
25 If you want simple input fields:
26
27 has_field 'my_date' => ( type => 'DateTime' );
28 has_field 'my_date.month' => ( type => 'Integer', range_start => 1,
29 range_end => 12 );
30 has_field 'my_date.day' => ( type => 'Integer', range_start => 1,
31 range_end => 31 );
32
33 Customizable error: 'datetime_invalid' (default = "Not a valid
34 DateTime")
35
36 See the 'Date' field for a single input date field.
37
39 FormHandler Contributors - see HTML::FormHandler
40
42 This software is copyright (c) 2017 by Gerda Shank.
43
44 This is free software; you can redistribute it and/or modify it under
45 the same terms as the Perl 5 programming language system itself.
46
47
48
49perl v5.30.1 2020-01-H3T0ML::FormHandler::Field::DateTime(3)