1HTML::FormFu::Deflator:U:sCeormpCoounntdrDiabtuetHTeTidMmLeP:(e:3rF)lorDmoFcuu:m:eDnetfaltaitoonr::CompoundDateTime(3)
2
3
4
6 HTML::FormFu::Deflator::CompoundDateTime - CompoundDateTime deflator
7
9 version 2.06
10
12 ---
13 element:
14 - type: Multi
15 name: date
16
17 elements:
18 - name: day
19 - name: month
20 - name: year
21
22 deflator:
23 - type: CompoundDateTime
24
25 # set the default
26
27 $form->get_field('date')->default( $datetime );
28
30 For use with a HTML::FormFu::Element::Multi group of fields.
31
32 Sets the default values of several fields from a single DateTime value.
33
34 By default, expects the field names to be any of the following:
35
36 year
37 month
38 day
39 hour
40 minute
41 second
42 nanosecond
43 time_zone
44
46 field_order
47 Arguments: \@order
48
49 If your field names don't follow the convention listed above, you must
50 provide an arrayref containing the above names, in the order they
51 correspond with your own fields.
52
53 ---
54 element:
55 - type: Multi
56 name: date
57
58 elements:
59 - name: m
60 - name: d
61 - name: y
62
63 deflator:
64 - type: CompoundDateTime
65 field_order:
66 - month
67 - day
68 - year
69
71 Carl Franks
72
74 This library is free software, you can redistribute it and/or modify it
75 under the same terms as Perl itself.
76
78 Carl Franks <cpan@fireartist.com>
79
81 This software is copyright (c) 2018 by Carl Franks.
82
83 This is free software; you can redistribute it and/or modify it under
84 the same terms as the Perl 5 programming language system itself.
85
86
87
88perl v5.28.0 20H1T8M-L0:4:-F0o9rmFu::Deflator::CompoundDateTime(3)