1HTML::FormFu::Element::UDsaetreTCiomnet(r3i)buted Perl DHoTcMuLm:e:nFtoartmiFoun::Element::DateTime(3)
2
3
4

NAME

6       HTML::FormFu::Element::DateTime - Date / Time combo field
7

VERSION

9       version 2.07
10

SYNOPSIS

12           ---
13           elements:
14             - type: DateTime
15               name: start_datetime
16               label: 'Start:'
17               auto_inflate: 1
18

DESCRIPTION

20       Sub-class of Date element, providing extra "hour" and "minute" Select
21       menus.
22

METHODS

24   hour
25       Arguments: \%setting
26
27       Set values effecting the "hour" select menu. Known keys are:
28
29       name
30
31       Override the auto-generated name of the select menu.
32
33       default
34
35       Set the default value of the select menu
36
37       prefix
38
39       Arguments: $value
40
41       Arguments: \@values
42
43       A string or arrayref of strings to be inserted into the start of the
44       select menu.
45
46       Each value is only used as the label for a select item - the value for
47       each of these items is always the empty string ''.
48
49       prefix_loc
50
51       Arguments: $localization_key
52
53       Arguments: \@localization_keys
54
55       A localized string or arrayref of localized strings to be inserted into
56       the start of the select menu.
57
58       Each value is localized and then only used as the label for a select
59       item - the value for each of these items is always the empty string ''.
60
61       Use "prefix_loc" insted of "prefix".
62
63   minute
64       Arguments: \%setting
65
66       Set values effecting the "minute" select menu. Known keys are:
67
68       name
69
70       Override the auto-generated name of the select menu.
71
72       default
73
74       Set the default value of the select menu
75
76       prefix
77
78       Arguments: $value
79
80       Arguments: \@values
81
82       A string or arrayref of strings to be inserted into the start of the
83       select menu.
84
85       Each value is only used as the label for a select item - the value for
86       each of these items is always the empty string ''.
87
88       prefix_loc
89
90       Arguments: $localization_key
91
92       Arguments: \@localization_keys
93
94       A localized string or arrayref of localized strings to be inserted into
95       the start of the select menu.
96
97       Each value is localized and then only used as the label for a select
98       item - the value for each of these items is always the empty string ''.
99
100       Use "prefix_loc" insted of "prefix".
101
102   second
103       Arguments: \%setting
104
105       Set values effecting the "second" select menu. Known keys are:
106
107       name
108
109       Override the auto-generated name of the select menu.
110
111       default
112
113       Set the default value of the select menu
114
115       prefix
116
117       Arguments: $value
118
119       Arguments: \@values
120
121       A string or arrayref of strings to be inserted into the start of the
122       select menu.
123
124       Each value is only used as the label for a select item - the value for
125       each of these items is always the empty string ''.
126
127       prefix_loc
128
129       Arguments: $localization_key
130
131       Arguments: \@localization_keys
132
133       A localized string or arrayref of localized strings to be inserted into
134       the start of the select menu.
135
136       Each value is localized and then only used as the label for a select
137       item - the value for each of these items is always the empty string ''.
138
139       Use "prefix_loc" insted of "prefix".
140
141   field_order
142       Arguments: \@fields
143
144       Default Value: ['day', 'month', 'year', 'hour', 'minute']
145
146       Specify the order of the date fields in the rendered HTML.
147
148       If you want the "second" selector to display, you must set both
149       "/field_order" and strftime yourself. Eg:
150
151           elements:
152             type: DateTime
153             name: foo
154             strftime: '%d-%m-%Y %H:%M:%S'
155             field_order: ['day', 'month', 'year', 'hour', 'minute', 'second']
156
157       Not all fields are required. No single field can be used more than
158       once.
159

CAVEATS

161       See "CAVEATS" in HTML::FormFu::Element::Date
162

SEE ALSO

164       Is a sub-class of, and inherits methods from
165       HTML::FormFu::Element::Date HTML::FormFu::Role::Element::Field,
166       HTML::FormFu::Element::Multi, HTML::FormFu::Element::Block,
167       HTML::FormFu::Element
168
169       HTML::FormFu
170

AUTHOR

172       Carl Franks, "cfranks@cpan.org"
173

LICENSE

175       This library is free software, you can redistribute it and/or modify it
176       under the same terms as Perl itself.
177

AUTHOR

179       Carl Franks <cpan@fireartist.com>
180
182       This software is copyright (c) 2018 by Carl Franks.
183
184       This is free software; you can redistribute it and/or modify it under
185       the same terms as the Perl 5 programming language system itself.
186
187
188
189perl v5.30.1                      2020-01-30HTML::FormFu::Element::DateTime(3)
Impressum