|
NAMEForm::Sensible::Field::DateTime - A DateTime field type.SYNOPSISuse Form::Sensible::Field::DateTime; my $object = Form::Sensible::Field::DateTime->new( span => datetime_span_object, recurrence => $recurrence_sub, ); $object->do_stuff(); my $object2 = Form::Sensible::Field::DateTime->new( span => datetime_span_object, recurrence => 'hourly', ); $object2->do_stuff(); DESCRIPTIONThe datetime field type is one of the more advanced field types in Form::Sensible. It uses DateTime::Format::Natural to format user input into a valid DateTime object, and uses DateTime::Set to allow date range numbers. It can be set to have a lower and upper bound, allowing validation to ensure that the value selected is within a range.Finally, it can be rendered in a number of ways including select boxes, drop downs or even ranged-sliders if your renderer supports it. It can have a 'recurrence', which provides a constraint to what values are valid between the datetime span, otherwise it just returns the DateTime value set for the field. ATTRIBUTES
METHODS
The following two methods allow DateTime fields to be treated like Select Fields for rendering purposes.
AUTHORDavid Romano - <unobe@cpan.org>SPONSORED BYIonzero LLC. <http://ionzero.com/>SEE ALSOForm::SensibleLICENSECopyright (c) 2012 by Ionzero LLCThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. POD ERRORSHey! The above document had some coding errors, which are explained below:
Visit the GSP FreeBSD Man Page Interface. |