HTML::FormHandlerX::Field::DateTimeNatural - a datetime field with natural language parsing.
This field is a simple text input field type, but it understands natural language and dates. Most of the functionality is inherited from DateTime::Format::Natural. To see a list of dates it can understand see DateTime::Format::Natural::Lang::EN.
has_field 'date' => ( type => 'DateTimeNatural', time_zone => 'UTC', # optional );
In addition to that, it will try to obtain the values for these attributes from the parent form class. E.g. you can set the
time_zone attribute on the form class, and all of the
DateTimeNatural fields will automatically have the time zone set.
Here is the list of the methods, please refer to original module for their description:
Roman F. <email@example.com>
This software is copyright (c) 2013 by Roman F..