HTML::FormHandler::Field::Duration - DateTime::Duration from HTML form values
Subfield names:
years, months, weeks, days, hours, minutes, seconds, nanoseconds
For example:
has 'duration' => ( type => 'Compound' ); has 'duration.hours' => ( type => 'Int', range_start => 0, range_end => 23 ); has 'duration.minutes' => ( type => 'Int', range_start => 0, range_end => 59 );
To install HTML::FormHandler, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::FormHandler
CPAN shell
perl -MCPAN -e shell install HTML::FormHandler
For more information on module installation, please visit the detailed CPAN module installation guide.